build-raptor 0.134.0 → 0.136.0
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-raptor.js +5209 -0
- package/index.d.ts +22 -0
- package/index.js +5003 -0
- package/package.json +13 -17
- package/dist/deps/brand/brand.d.ts +0 -5
- package/dist/deps/brand/brand.js +0 -3
- package/dist/deps/brand/index.d.ts +0 -1
- package/dist/deps/brand/index.js +0 -18
- package/dist/deps/build-failed-error/build-failed-error.d.ts +0 -14
- package/dist/deps/build-failed-error/build-failed-error.js +0 -13
- package/dist/deps/build-failed-error/index.d.ts +0 -1
- package/dist/deps/build-failed-error/index.js +0 -18
- package/dist/deps/build-raptor-api/build-raptor-api.d.ts +0 -351
- package/dist/deps/build-raptor-api/build-raptor-api.js +0 -132
- package/dist/deps/build-raptor-api/index.d.ts +0 -2
- package/dist/deps/build-raptor-api/index.js +0 -19
- package/dist/deps/build-raptor-api/step-by-step-processor.d.ts +0 -35
- package/dist/deps/build-raptor-api/step-by-step-processor.js +0 -3
- package/dist/deps/build-raptor-core/breakdown.d.ts +0 -18
- package/dist/deps/build-raptor-core/breakdown.js +0 -99
- package/dist/deps/build-raptor-core/build-raptor-config.d.ts +0 -21
- package/dist/deps/build-raptor-core/build-raptor-config.js +0 -25
- package/dist/deps/build-raptor-core/default-asset-publisher.d.ts +0 -10
- package/dist/deps/build-raptor-core/default-asset-publisher.js +0 -16
- package/dist/deps/build-raptor-core/engine-bootstrapper.d.ts +0 -50
- package/dist/deps/build-raptor-core/engine-bootstrapper.js +0 -200
- package/dist/deps/build-raptor-core/engine-event-scheme.d.ts +0 -20
- package/dist/deps/build-raptor-core/engine-event-scheme.js +0 -3
- package/dist/deps/build-raptor-core/engine.d.ts +0 -66
- package/dist/deps/build-raptor-core/engine.js +0 -285
- package/dist/deps/build-raptor-core/examplify-zod.d.ts +0 -93
- package/dist/deps/build-raptor-core/examplify-zod.js +0 -257
- package/dist/deps/build-raptor-core/execution-plan.d.ts +0 -20
- package/dist/deps/build-raptor-core/execution-plan.js +0 -66
- package/dist/deps/build-raptor-core/execution-record.d.ts +0 -17
- package/dist/deps/build-raptor-core/execution-record.js +0 -3
- package/dist/deps/build-raptor-core/execution-type.d.ts +0 -2
- package/dist/deps/build-raptor-core/execution-type.js +0 -3
- package/dist/deps/build-raptor-core/find-repo-dir.d.ts +0 -1
- package/dist/deps/build-raptor-core/find-repo-dir.js +0 -27
- package/dist/deps/build-raptor-core/fingerprint-ledger.d.ts +0 -33
- package/dist/deps/build-raptor-core/fingerprint-ledger.js +0 -164
- package/dist/deps/build-raptor-core/fingerprint.d.ts +0 -3
- package/dist/deps/build-raptor-core/fingerprint.js +0 -13
- package/dist/deps/build-raptor-core/fingerprinter.d.ts +0 -15
- package/dist/deps/build-raptor-core/fingerprinter.js +0 -122
- package/dist/deps/build-raptor-core/hasher.d.ts +0 -21
- package/dist/deps/build-raptor-core/hasher.js +0 -93
- package/dist/deps/build-raptor-core/index.d.ts +0 -9
- package/dist/deps/build-raptor-core/index.js +0 -26
- package/dist/deps/build-raptor-core/model.d.ts +0 -17
- package/dist/deps/build-raptor-core/model.js +0 -40
- package/dist/deps/build-raptor-core/nop-asset-publisher.d.ts +0 -6
- package/dist/deps/build-raptor-core/nop-asset-publisher.js +0 -12
- package/dist/deps/build-raptor-core/performance-report.d.ts +0 -5
- package/dist/deps/build-raptor-core/performance-report.js +0 -3
- package/dist/deps/build-raptor-core/phase.d.ts +0 -1
- package/dist/deps/build-raptor-core/phase.js +0 -3
- package/dist/deps/build-raptor-core/planner.d.ts +0 -12
- package/dist/deps/build-raptor-core/planner.js +0 -43
- package/dist/deps/build-raptor-core/purger.d.ts +0 -11
- package/dist/deps/build-raptor-core/purger.js +0 -65
- package/dist/deps/build-raptor-core/slot-index.d.ts +0 -6
- package/dist/deps/build-raptor-core/slot-index.js +0 -17
- package/dist/deps/build-raptor-core/step-by-step-transmitter.d.ts +0 -15
- package/dist/deps/build-raptor-core/step-by-step-transmitter.js +0 -94
- package/dist/deps/build-raptor-core/tar-stream.d.ts +0 -20
- package/dist/deps/build-raptor-core/tar-stream.js +0 -194
- package/dist/deps/build-raptor-core/task-executor.d.ts +0 -32
- package/dist/deps/build-raptor-core/task-executor.js +0 -321
- package/dist/deps/build-raptor-core/task-store-cli.d.ts +0 -1
- package/dist/deps/build-raptor-core/task-store-cli.js +0 -61
- package/dist/deps/build-raptor-core/task-store-event.d.ts +0 -17
- package/dist/deps/build-raptor-core/task-store-event.js +0 -3
- package/dist/deps/build-raptor-core/task-store.d.ts +0 -41
- package/dist/deps/build-raptor-core/task-store.js +0 -302
- package/dist/deps/build-raptor-core/task-summary.d.ts +0 -12
- package/dist/deps/build-raptor-core/task-summary.js +0 -3
- package/dist/deps/build-raptor-core/task-tracker.d.ts +0 -23
- package/dist/deps/build-raptor-core/task-tracker.js +0 -97
- package/dist/deps/build-raptor-core/task.d.ts +0 -30
- package/dist/deps/build-raptor-core/task.js +0 -90
- package/dist/deps/build-raptor-core/updatable-task-output-registry.d.ts +0 -13
- package/dist/deps/build-raptor-core/updatable-task-output-registry.js +0 -75
- package/dist/deps/build-raptor-core/validate-task-infos.d.ts +0 -3
- package/dist/deps/build-raptor-core/validate-task-infos.js +0 -53
- package/dist/deps/build-raptor-core-testkit/build-raptor-core-testkit.d.ts +0 -1
- package/dist/deps/build-raptor-core-testkit/build-raptor-core-testkit.js +0 -18
- package/dist/deps/build-raptor-core-testkit/driver.d.ts +0 -119
- package/dist/deps/build-raptor-core-testkit/driver.js +0 -305
- package/dist/deps/build-raptor-core-testkit/index.d.ts +0 -3
- package/dist/deps/build-raptor-core-testkit/index.js +0 -20
- package/dist/deps/build-raptor-core-testkit/repo-protocol-testkit.d.ts +0 -35
- package/dist/deps/build-raptor-core-testkit/repo-protocol-testkit.js +0 -226
- package/dist/deps/build-raptor-core-testkit/simple-node-repo-protocol.d.ts +0 -27
- package/dist/deps/build-raptor-core-testkit/simple-node-repo-protocol.js +0 -140
- package/dist/deps/build-run-id/build-run-id.d.ts +0 -3
- package/dist/deps/build-run-id/build-run-id.js +0 -13
- package/dist/deps/build-run-id/index.d.ts +0 -1
- package/dist/deps/build-run-id/index.js +0 -18
- package/dist/deps/core-types/core-types.d.ts +0 -29
- package/dist/deps/core-types/core-types.js +0 -81
- package/dist/deps/core-types/index.d.ts +0 -1
- package/dist/deps/core-types/index.js +0 -18
- package/dist/deps/logger/index.d.ts +0 -1
- package/dist/deps/logger/index.js +0 -18
- package/dist/deps/logger/logger.d.ts +0 -26
- package/dist/deps/logger/logger.js +0 -152
- package/dist/deps/misc/arrays.d.ts +0 -7
- package/dist/deps/misc/arrays.js +0 -67
- package/dist/deps/misc/camelize-record.d.ts +0 -6
- package/dist/deps/misc/camelize-record.js +0 -16
- package/dist/deps/misc/clean-directory.d.ts +0 -4
- package/dist/deps/misc/clean-directory.js +0 -80
- package/dist/deps/misc/constructs.d.ts +0 -106
- package/dist/deps/misc/constructs.js +0 -131
- package/dist/deps/misc/directory-scanner.d.ts +0 -49
- package/dist/deps/misc/directory-scanner.js +0 -165
- package/dist/deps/misc/executor.d.ts +0 -39
- package/dist/deps/misc/executor.js +0 -59
- package/dist/deps/misc/file-system-storage-client.d.ts +0 -23
- package/dist/deps/misc/file-system-storage-client.js +0 -93
- package/dist/deps/misc/folderify.d.ts +0 -8
- package/dist/deps/misc/folderify.js +0 -86
- package/dist/deps/misc/graph.d.ts +0 -29
- package/dist/deps/misc/graph.js +0 -200
- package/dist/deps/misc/in-memory-storage-client.d.ts +0 -21
- package/dist/deps/misc/in-memory-storage-client.js +0 -75
- package/dist/deps/misc/index.d.ts +0 -20
- package/dist/deps/misc/index.js +0 -37
- package/dist/deps/misc/int.d.ts +0 -10
- package/dist/deps/misc/int.js +0 -29
- package/dist/deps/misc/internal/graph-executor.d.ts +0 -15
- package/dist/deps/misc/internal/graph-executor.js +0 -93
- package/dist/deps/misc/maps.d.ts +0 -29
- package/dist/deps/misc/maps.js +0 -47
- package/dist/deps/misc/misc.d.ts +0 -23
- package/dist/deps/misc/misc.js +0 -94
- package/dist/deps/misc/object-map.d.ts +0 -10
- package/dist/deps/misc/object-map.js +0 -26
- package/dist/deps/misc/promises.d.ts +0 -39
- package/dist/deps/misc/promises.js +0 -78
- package/dist/deps/misc/records.d.ts +0 -11
- package/dist/deps/misc/records.js +0 -40
- package/dist/deps/misc/slurp-dir.d.ts +0 -1
- package/dist/deps/misc/slurp-dir.js +0 -14
- package/dist/deps/misc/storage-client.d.ts +0 -12
- package/dist/deps/misc/storage-client.js +0 -3
- package/dist/deps/misc/stream-to-buffer.d.ts +0 -2
- package/dist/deps/misc/stream-to-buffer.js +0 -26
- package/dist/deps/misc/strings.d.ts +0 -12
- package/dist/deps/misc/strings.js +0 -68
- package/dist/deps/misc/typed-publisher.d.ts +0 -17
- package/dist/deps/misc/typed-publisher.js +0 -65
- package/dist/deps/repo-protocol/index.d.ts +0 -3
- package/dist/deps/repo-protocol/index.js +0 -20
- package/dist/deps/repo-protocol/repo-protocol.d.ts +0 -49
- package/dist/deps/repo-protocol/repo-protocol.js +0 -3
- package/dist/deps/repo-protocol/task-info.d.ts +0 -18
- package/dist/deps/repo-protocol/task-info.js +0 -3
- package/dist/deps/repo-protocol/test-run-summary.d.ts +0 -54
- package/dist/deps/repo-protocol/test-run-summary.js +0 -32
- package/dist/deps/repo-protocol-toolbox/generate-task-infos.d.ts +0 -5
- package/dist/deps/repo-protocol-toolbox/generate-task-infos.js +0 -26
- package/dist/deps/repo-protocol-toolbox/index.d.ts +0 -3
- package/dist/deps/repo-protocol-toolbox/index.js +0 -20
- package/dist/deps/repo-protocol-toolbox/repo-protocol-toolbox.d.ts +0 -10
- package/dist/deps/repo-protocol-toolbox/repo-protocol-toolbox.js +0 -90
- package/dist/deps/repo-protocol-toolbox/task-definition.d.ts +0 -14
- package/dist/deps/repo-protocol-toolbox/task-definition.js +0 -3
- package/dist/deps/reporter-output/index.d.ts +0 -1
- package/dist/deps/reporter-output/index.js +0 -18
- package/dist/deps/reporter-output/reporter-output.d.ts +0 -49
- package/dist/deps/reporter-output/reporter-output.js +0 -25
- package/dist/deps/s3-storage-client/creds.d.ts +0 -4
- package/dist/deps/s3-storage-client/creds.js +0 -3
- package/dist/deps/s3-storage-client/get-s3-storage-client-factory.d.ts +0 -3
- package/dist/deps/s3-storage-client/get-s3-storage-client-factory.js +0 -45
- package/dist/deps/s3-storage-client/index.d.ts +0 -2
- package/dist/deps/s3-storage-client/index.js +0 -19
- package/dist/deps/s3-storage-client/main.d.ts +0 -1
- package/dist/deps/s3-storage-client/main.js +0 -20
- package/dist/deps/s3-storage-client/s3-storage-client.d.ts +0 -25
- package/dist/deps/s3-storage-client/s3-storage-client.js +0 -134
- package/dist/deps/task-name/index.d.ts +0 -1
- package/dist/deps/task-name/index.js +0 -18
- package/dist/deps/task-name/task-name.d.ts +0 -17
- package/dist/deps/task-name/task-name.js +0 -44
- package/dist/deps/unit-metadata/index.d.ts +0 -1
- package/dist/deps/unit-metadata/index.js +0 -18
- package/dist/deps/unit-metadata/unit-metadata.d.ts +0 -14
- package/dist/deps/unit-metadata/unit-metadata.js +0 -32
- package/dist/deps/yarn-repo-protocol/build-task-record.d.ts +0 -61
- package/dist/deps/yarn-repo-protocol/build-task-record.js +0 -29
- package/dist/deps/yarn-repo-protocol/generate-test-run-summary.d.ts +0 -4
- package/dist/deps/yarn-repo-protocol/generate-test-run-summary.js +0 -26
- package/dist/deps/yarn-repo-protocol/index.d.ts +0 -2
- package/dist/deps/yarn-repo-protocol/index.js +0 -19
- package/dist/deps/yarn-repo-protocol/rerun-list.d.ts +0 -12
- package/dist/deps/yarn-repo-protocol/rerun-list.js +0 -6
- package/dist/deps/yarn-repo-protocol/yarn-repo-protocol-config.d.ts +0 -24
- package/dist/deps/yarn-repo-protocol/yarn-repo-protocol-config.js +0 -34
- package/dist/deps/yarn-repo-protocol/yarn-repo-protocol.d.ts +0 -82
- package/dist/deps/yarn-repo-protocol/yarn-repo-protocol.js +0 -1036
- package/dist/src/build-raptor-cli.d.ts +0 -60
- package/dist/src/build-raptor-cli.js +0 -514
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +0 -20
- package/dist/src/main.d.ts +0 -2
- package/dist/src/main.js +0 -23
- package/dist/src/register-asset-request.d.ts +0 -18
- package/dist/src/register-asset-request.js +0 -11
- package/dist/src/task-execution-visualizer.d.ts +0 -17
- package/dist/src/task-execution-visualizer.js +0 -116
package/package.json
CHANGED
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "build-raptor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.136.0",
|
|
4
4
|
"description": "CLI for super-fast monorepo builds",
|
|
5
|
-
"keywords": [],
|
|
6
5
|
"license": "MIT",
|
|
7
|
-
"
|
|
8
|
-
"main": "
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
"test": "jest"
|
|
16
|
-
},
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"types": "index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"index.js",
|
|
11
|
+
"index.d.ts",
|
|
12
|
+
"build-raptor.js"
|
|
13
|
+
],
|
|
17
14
|
"dependencies": {
|
|
18
15
|
"@aws-sdk/client-s3": "^3.623.0",
|
|
19
16
|
"build-raptor-dynamic-loader": "^1.0.1",
|
|
20
|
-
"build-raptor-jest-reporter": "0.
|
|
17
|
+
"build-raptor-jest-reporter": "0.136.0",
|
|
21
18
|
"escape-string-regexp": "^4.0.0",
|
|
22
19
|
"execa": "^5.0.0",
|
|
23
20
|
"fs-extra": "^9.0.0",
|
|
@@ -33,8 +30,7 @@
|
|
|
33
30
|
"yargs": "^17.3.0",
|
|
34
31
|
"zod": "^3.21.4"
|
|
35
32
|
},
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
"nohoist": true
|
|
33
|
+
"bin": {
|
|
34
|
+
"build-raptor": "build-raptor.js"
|
|
35
|
+
}
|
|
40
36
|
}
|
package/dist/deps/brand/brand.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './brand';
|
package/dist/deps/brand/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./brand"), exports);
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDBDQUF1QiJ9
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type HintType =
|
|
2
|
-
/**
|
|
3
|
-
* Failure while running a build task (including, for instance, test tasks)
|
|
4
|
-
*/
|
|
5
|
-
'task'
|
|
6
|
-
/**
|
|
7
|
-
* Failure while running a program (due to `build-raptor run` command)
|
|
8
|
-
*/
|
|
9
|
-
| 'program';
|
|
10
|
-
export declare class BuildFailedError extends Error {
|
|
11
|
-
readonly hint: HintType;
|
|
12
|
-
constructor(m: string, hint?: HintType);
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BuildFailedError = void 0;
|
|
4
|
-
class BuildFailedError extends Error {
|
|
5
|
-
constructor(m, hint = 'task') {
|
|
6
|
-
super(m);
|
|
7
|
-
this.hint = hint;
|
|
8
|
-
// Set the prototype explicitly.
|
|
9
|
-
Object.setPrototypeOf(this, BuildFailedError.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.BuildFailedError = BuildFailedError;
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGQtZmFpbGVkLWVycm9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2J1aWxkLWZhaWxlZC1lcnJvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFVQSxNQUFhLGdCQUFpQixTQUFRLEtBQUs7SUFDekMsWUFBWSxDQUFTLEVBQVcsT0FBaUIsTUFBTTtRQUNyRCxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUE7UUFEc0IsU0FBSSxHQUFKLElBQUksQ0FBbUI7UUFHckQsZ0NBQWdDO1FBQ2hDLE1BQU0sQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLGdCQUFnQixDQUFDLFNBQVMsQ0FBQyxDQUFBO0lBQ3pELENBQUM7Q0FDRjtBQVBELDRDQU9DIn0=
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './build-failed-error';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./build-failed-error"), exports);
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHVEQUFvQyJ9
|
|
@@ -1,351 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* Represents a union of possible build step types, discriminated by the 'step' field.
|
|
4
|
-
* Each step type contains specific information about different phases of the build process.
|
|
5
|
-
*/
|
|
6
|
-
export declare const Step: z.ZodDiscriminatedUnion<"step", [z.ZodObject<{
|
|
7
|
-
step: z.ZodLiteral<"BUILD_RUN_STARTED">;
|
|
8
|
-
buildRunId: z.ZodString;
|
|
9
|
-
commitHash: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
step: "BUILD_RUN_STARTED";
|
|
12
|
-
buildRunId: string;
|
|
13
|
-
commitHash?: string | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
step: "BUILD_RUN_STARTED";
|
|
16
|
-
buildRunId: string;
|
|
17
|
-
commitHash?: string | undefined;
|
|
18
|
-
}>, z.ZodObject<{
|
|
19
|
-
step: z.ZodLiteral<"BUILD_RUN_ENDED">;
|
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
step: "BUILD_RUN_ENDED";
|
|
22
|
-
}, {
|
|
23
|
-
step: "BUILD_RUN_ENDED";
|
|
24
|
-
}>, z.ZodObject<{
|
|
25
|
-
step: z.ZodLiteral<"TASK_STORE_PUT">;
|
|
26
|
-
fingerprint: z.ZodOptional<z.ZodString>;
|
|
27
|
-
taskName: z.ZodString;
|
|
28
|
-
unitId: z.ZodString;
|
|
29
|
-
taskKind: z.ZodString;
|
|
30
|
-
blobId: z.ZodString;
|
|
31
|
-
files: z.ZodArray<z.ZodString, "many">;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
step: "TASK_STORE_PUT";
|
|
34
|
-
taskName: string;
|
|
35
|
-
unitId: string;
|
|
36
|
-
taskKind: string;
|
|
37
|
-
blobId: string;
|
|
38
|
-
files: string[];
|
|
39
|
-
fingerprint?: string | undefined;
|
|
40
|
-
}, {
|
|
41
|
-
step: "TASK_STORE_PUT";
|
|
42
|
-
taskName: string;
|
|
43
|
-
unitId: string;
|
|
44
|
-
taskKind: string;
|
|
45
|
-
blobId: string;
|
|
46
|
-
files: string[];
|
|
47
|
-
fingerprint?: string | undefined;
|
|
48
|
-
}>, z.ZodObject<{
|
|
49
|
-
step: z.ZodLiteral<"TASK_STORE_GET">;
|
|
50
|
-
fingerprint: z.ZodOptional<z.ZodString>;
|
|
51
|
-
taskName: z.ZodString;
|
|
52
|
-
unitId: z.ZodString;
|
|
53
|
-
taskKind: z.ZodString;
|
|
54
|
-
blobId: z.ZodString;
|
|
55
|
-
files: z.ZodArray<z.ZodString, "many">;
|
|
56
|
-
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
step: "TASK_STORE_GET";
|
|
58
|
-
taskName: string;
|
|
59
|
-
unitId: string;
|
|
60
|
-
taskKind: string;
|
|
61
|
-
blobId: string;
|
|
62
|
-
files: string[];
|
|
63
|
-
fingerprint?: string | undefined;
|
|
64
|
-
}, {
|
|
65
|
-
step: "TASK_STORE_GET";
|
|
66
|
-
taskName: string;
|
|
67
|
-
unitId: string;
|
|
68
|
-
taskKind: string;
|
|
69
|
-
blobId: string;
|
|
70
|
-
files: string[];
|
|
71
|
-
fingerprint?: string | undefined;
|
|
72
|
-
}>, z.ZodObject<{
|
|
73
|
-
step: z.ZodLiteral<"TEST_ENDED">;
|
|
74
|
-
taskName: z.ZodString;
|
|
75
|
-
fileName: z.ZodString;
|
|
76
|
-
testPath: z.ZodArray<z.ZodString, "many">;
|
|
77
|
-
durationMillis: z.ZodUnion<[z.ZodNumber, z.ZodUndefined]>;
|
|
78
|
-
verdict: z.ZodUnion<[z.ZodLiteral<"TEST_PASSED">, z.ZodLiteral<"TEST_FAILED">, z.ZodLiteral<"TEST_CRASHED">, z.ZodLiteral<"TEST_TIMEDOUT">]>;
|
|
79
|
-
}, "strip", z.ZodTypeAny, {
|
|
80
|
-
step: "TEST_ENDED";
|
|
81
|
-
taskName: string;
|
|
82
|
-
fileName: string;
|
|
83
|
-
testPath: string[];
|
|
84
|
-
verdict: "TEST_PASSED" | "TEST_FAILED" | "TEST_CRASHED" | "TEST_TIMEDOUT";
|
|
85
|
-
durationMillis?: number | undefined;
|
|
86
|
-
}, {
|
|
87
|
-
step: "TEST_ENDED";
|
|
88
|
-
taskName: string;
|
|
89
|
-
fileName: string;
|
|
90
|
-
testPath: string[];
|
|
91
|
-
verdict: "TEST_PASSED" | "TEST_FAILED" | "TEST_CRASHED" | "TEST_TIMEDOUT";
|
|
92
|
-
durationMillis?: number | undefined;
|
|
93
|
-
}>, z.ZodObject<{
|
|
94
|
-
step: z.ZodLiteral<"TASK_ENDED">;
|
|
95
|
-
/** The fully qualified name of the task (e.g., 'my-module:build') */
|
|
96
|
-
taskName: z.ZodString;
|
|
97
|
-
/** The final verdict that represents whether the task succeeded or failed */
|
|
98
|
-
verdict: z.ZodUnion<[z.ZodLiteral<"OK">, z.ZodLiteral<"FAIL">, z.ZodLiteral<"CRASH">, z.ZodLiteral<"UNKNOWN">]>;
|
|
99
|
-
/** Indicates how the task was processed during the build run */
|
|
100
|
-
executionType: z.ZodUnion<[z.ZodLiteral<"EXECUTED">, z.ZodLiteral<"CACHED">, z.ZodLiteral<"CANNOT_START">, z.ZodLiteral<"UNKNOWN">]>;
|
|
101
|
-
/** Duration of the task execution in milliseconds (optional for backwards compatibility) */
|
|
102
|
-
durationMillis: z.ZodOptional<z.ZodNumber>;
|
|
103
|
-
}, "strip", z.ZodTypeAny, {
|
|
104
|
-
step: "TASK_ENDED";
|
|
105
|
-
taskName: string;
|
|
106
|
-
verdict: "OK" | "FAIL" | "CRASH" | "UNKNOWN";
|
|
107
|
-
executionType: "UNKNOWN" | "EXECUTED" | "CACHED" | "CANNOT_START";
|
|
108
|
-
durationMillis?: number | undefined;
|
|
109
|
-
}, {
|
|
110
|
-
step: "TASK_ENDED";
|
|
111
|
-
taskName: string;
|
|
112
|
-
verdict: "OK" | "FAIL" | "CRASH" | "UNKNOWN";
|
|
113
|
-
executionType: "UNKNOWN" | "EXECUTED" | "CACHED" | "CANNOT_START";
|
|
114
|
-
durationMillis?: number | undefined;
|
|
115
|
-
}>, z.ZodObject<{
|
|
116
|
-
step: z.ZodLiteral<"ASSET_PUBLISHED">;
|
|
117
|
-
labels: z.ZodArray<z.ZodString, "many">;
|
|
118
|
-
taskName: z.ZodString;
|
|
119
|
-
unitId: z.ZodString;
|
|
120
|
-
taskKind: z.ZodUnknown;
|
|
121
|
-
fingerprint: z.ZodString;
|
|
122
|
-
casAddress: z.ZodString;
|
|
123
|
-
file: z.ZodString;
|
|
124
|
-
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
step: "ASSET_PUBLISHED";
|
|
126
|
-
fingerprint: string;
|
|
127
|
-
taskName: string;
|
|
128
|
-
unitId: string;
|
|
129
|
-
labels: string[];
|
|
130
|
-
casAddress: string;
|
|
131
|
-
file: string;
|
|
132
|
-
taskKind?: unknown;
|
|
133
|
-
}, {
|
|
134
|
-
step: "ASSET_PUBLISHED";
|
|
135
|
-
fingerprint: string;
|
|
136
|
-
taskName: string;
|
|
137
|
-
unitId: string;
|
|
138
|
-
labels: string[];
|
|
139
|
-
casAddress: string;
|
|
140
|
-
file: string;
|
|
141
|
-
taskKind?: unknown;
|
|
142
|
-
}>, z.ZodObject<{
|
|
143
|
-
/**
|
|
144
|
-
* Indicates the planning phase is complete. This step occurs once per build, before task execution begins.
|
|
145
|
-
*/
|
|
146
|
-
step: z.ZodLiteral<"PLAN_PREPARED">;
|
|
147
|
-
/**
|
|
148
|
-
* List of all task names within the current build scope. The scope is determined by the goals or labels provided to build-raptor.
|
|
149
|
-
* This list:
|
|
150
|
-
* - Includes tasks that may be skipped due to caching
|
|
151
|
-
* - Excludes tasks from modules not included in this build scope.
|
|
152
|
-
*/
|
|
153
|
-
taskNames: z.ZodArray<z.ZodString, "many">;
|
|
154
|
-
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
step: "PLAN_PREPARED";
|
|
156
|
-
taskNames: string[];
|
|
157
|
-
}, {
|
|
158
|
-
step: "PLAN_PREPARED";
|
|
159
|
-
taskNames: string[];
|
|
160
|
-
}>, z.ZodObject<{
|
|
161
|
-
step: z.ZodLiteral<"PUBLIC_FILES">;
|
|
162
|
-
taskName: z.ZodString;
|
|
163
|
-
/**
|
|
164
|
-
* Maps path-in-repo (of "public output" files) to the hash of the content of the file.
|
|
165
|
-
*/
|
|
166
|
-
publicFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
167
|
-
}, "strip", z.ZodTypeAny, {
|
|
168
|
-
step: "PUBLIC_FILES";
|
|
169
|
-
taskName: string;
|
|
170
|
-
publicFiles: Record<string, string>;
|
|
171
|
-
}, {
|
|
172
|
-
step: "PUBLIC_FILES";
|
|
173
|
-
taskName: string;
|
|
174
|
-
publicFiles: Record<string, string>;
|
|
175
|
-
}>]>;
|
|
176
|
-
export type Step = z.infer<typeof Step>;
|
|
177
|
-
export type StepName = Step['step'];
|
|
178
|
-
export type StepByName<N extends StepName> = Extract<Step, {
|
|
179
|
-
step: N;
|
|
180
|
-
}>;
|
|
181
|
-
export declare const StepByStep: z.ZodArray<z.ZodDiscriminatedUnion<"step", [z.ZodObject<{
|
|
182
|
-
step: z.ZodLiteral<"BUILD_RUN_STARTED">;
|
|
183
|
-
buildRunId: z.ZodString;
|
|
184
|
-
commitHash: z.ZodOptional<z.ZodString>;
|
|
185
|
-
}, "strip", z.ZodTypeAny, {
|
|
186
|
-
step: "BUILD_RUN_STARTED";
|
|
187
|
-
buildRunId: string;
|
|
188
|
-
commitHash?: string | undefined;
|
|
189
|
-
}, {
|
|
190
|
-
step: "BUILD_RUN_STARTED";
|
|
191
|
-
buildRunId: string;
|
|
192
|
-
commitHash?: string | undefined;
|
|
193
|
-
}>, z.ZodObject<{
|
|
194
|
-
step: z.ZodLiteral<"BUILD_RUN_ENDED">;
|
|
195
|
-
}, "strip", z.ZodTypeAny, {
|
|
196
|
-
step: "BUILD_RUN_ENDED";
|
|
197
|
-
}, {
|
|
198
|
-
step: "BUILD_RUN_ENDED";
|
|
199
|
-
}>, z.ZodObject<{
|
|
200
|
-
step: z.ZodLiteral<"TASK_STORE_PUT">;
|
|
201
|
-
fingerprint: z.ZodOptional<z.ZodString>;
|
|
202
|
-
taskName: z.ZodString;
|
|
203
|
-
unitId: z.ZodString;
|
|
204
|
-
taskKind: z.ZodString;
|
|
205
|
-
blobId: z.ZodString;
|
|
206
|
-
files: z.ZodArray<z.ZodString, "many">;
|
|
207
|
-
}, "strip", z.ZodTypeAny, {
|
|
208
|
-
step: "TASK_STORE_PUT";
|
|
209
|
-
taskName: string;
|
|
210
|
-
unitId: string;
|
|
211
|
-
taskKind: string;
|
|
212
|
-
blobId: string;
|
|
213
|
-
files: string[];
|
|
214
|
-
fingerprint?: string | undefined;
|
|
215
|
-
}, {
|
|
216
|
-
step: "TASK_STORE_PUT";
|
|
217
|
-
taskName: string;
|
|
218
|
-
unitId: string;
|
|
219
|
-
taskKind: string;
|
|
220
|
-
blobId: string;
|
|
221
|
-
files: string[];
|
|
222
|
-
fingerprint?: string | undefined;
|
|
223
|
-
}>, z.ZodObject<{
|
|
224
|
-
step: z.ZodLiteral<"TASK_STORE_GET">;
|
|
225
|
-
fingerprint: z.ZodOptional<z.ZodString>;
|
|
226
|
-
taskName: z.ZodString;
|
|
227
|
-
unitId: z.ZodString;
|
|
228
|
-
taskKind: z.ZodString;
|
|
229
|
-
blobId: z.ZodString;
|
|
230
|
-
files: z.ZodArray<z.ZodString, "many">;
|
|
231
|
-
}, "strip", z.ZodTypeAny, {
|
|
232
|
-
step: "TASK_STORE_GET";
|
|
233
|
-
taskName: string;
|
|
234
|
-
unitId: string;
|
|
235
|
-
taskKind: string;
|
|
236
|
-
blobId: string;
|
|
237
|
-
files: string[];
|
|
238
|
-
fingerprint?: string | undefined;
|
|
239
|
-
}, {
|
|
240
|
-
step: "TASK_STORE_GET";
|
|
241
|
-
taskName: string;
|
|
242
|
-
unitId: string;
|
|
243
|
-
taskKind: string;
|
|
244
|
-
blobId: string;
|
|
245
|
-
files: string[];
|
|
246
|
-
fingerprint?: string | undefined;
|
|
247
|
-
}>, z.ZodObject<{
|
|
248
|
-
step: z.ZodLiteral<"TEST_ENDED">;
|
|
249
|
-
taskName: z.ZodString;
|
|
250
|
-
fileName: z.ZodString;
|
|
251
|
-
testPath: z.ZodArray<z.ZodString, "many">;
|
|
252
|
-
durationMillis: z.ZodUnion<[z.ZodNumber, z.ZodUndefined]>;
|
|
253
|
-
verdict: z.ZodUnion<[z.ZodLiteral<"TEST_PASSED">, z.ZodLiteral<"TEST_FAILED">, z.ZodLiteral<"TEST_CRASHED">, z.ZodLiteral<"TEST_TIMEDOUT">]>;
|
|
254
|
-
}, "strip", z.ZodTypeAny, {
|
|
255
|
-
step: "TEST_ENDED";
|
|
256
|
-
taskName: string;
|
|
257
|
-
fileName: string;
|
|
258
|
-
testPath: string[];
|
|
259
|
-
verdict: "TEST_PASSED" | "TEST_FAILED" | "TEST_CRASHED" | "TEST_TIMEDOUT";
|
|
260
|
-
durationMillis?: number | undefined;
|
|
261
|
-
}, {
|
|
262
|
-
step: "TEST_ENDED";
|
|
263
|
-
taskName: string;
|
|
264
|
-
fileName: string;
|
|
265
|
-
testPath: string[];
|
|
266
|
-
verdict: "TEST_PASSED" | "TEST_FAILED" | "TEST_CRASHED" | "TEST_TIMEDOUT";
|
|
267
|
-
durationMillis?: number | undefined;
|
|
268
|
-
}>, z.ZodObject<{
|
|
269
|
-
step: z.ZodLiteral<"TASK_ENDED">;
|
|
270
|
-
/** The fully qualified name of the task (e.g., 'my-module:build') */
|
|
271
|
-
taskName: z.ZodString;
|
|
272
|
-
/** The final verdict that represents whether the task succeeded or failed */
|
|
273
|
-
verdict: z.ZodUnion<[z.ZodLiteral<"OK">, z.ZodLiteral<"FAIL">, z.ZodLiteral<"CRASH">, z.ZodLiteral<"UNKNOWN">]>;
|
|
274
|
-
/** Indicates how the task was processed during the build run */
|
|
275
|
-
executionType: z.ZodUnion<[z.ZodLiteral<"EXECUTED">, z.ZodLiteral<"CACHED">, z.ZodLiteral<"CANNOT_START">, z.ZodLiteral<"UNKNOWN">]>;
|
|
276
|
-
/** Duration of the task execution in milliseconds (optional for backwards compatibility) */
|
|
277
|
-
durationMillis: z.ZodOptional<z.ZodNumber>;
|
|
278
|
-
}, "strip", z.ZodTypeAny, {
|
|
279
|
-
step: "TASK_ENDED";
|
|
280
|
-
taskName: string;
|
|
281
|
-
verdict: "OK" | "FAIL" | "CRASH" | "UNKNOWN";
|
|
282
|
-
executionType: "UNKNOWN" | "EXECUTED" | "CACHED" | "CANNOT_START";
|
|
283
|
-
durationMillis?: number | undefined;
|
|
284
|
-
}, {
|
|
285
|
-
step: "TASK_ENDED";
|
|
286
|
-
taskName: string;
|
|
287
|
-
verdict: "OK" | "FAIL" | "CRASH" | "UNKNOWN";
|
|
288
|
-
executionType: "UNKNOWN" | "EXECUTED" | "CACHED" | "CANNOT_START";
|
|
289
|
-
durationMillis?: number | undefined;
|
|
290
|
-
}>, z.ZodObject<{
|
|
291
|
-
step: z.ZodLiteral<"ASSET_PUBLISHED">;
|
|
292
|
-
labels: z.ZodArray<z.ZodString, "many">;
|
|
293
|
-
taskName: z.ZodString;
|
|
294
|
-
unitId: z.ZodString;
|
|
295
|
-
taskKind: z.ZodUnknown;
|
|
296
|
-
fingerprint: z.ZodString;
|
|
297
|
-
casAddress: z.ZodString;
|
|
298
|
-
file: z.ZodString;
|
|
299
|
-
}, "strip", z.ZodTypeAny, {
|
|
300
|
-
step: "ASSET_PUBLISHED";
|
|
301
|
-
fingerprint: string;
|
|
302
|
-
taskName: string;
|
|
303
|
-
unitId: string;
|
|
304
|
-
labels: string[];
|
|
305
|
-
casAddress: string;
|
|
306
|
-
file: string;
|
|
307
|
-
taskKind?: unknown;
|
|
308
|
-
}, {
|
|
309
|
-
step: "ASSET_PUBLISHED";
|
|
310
|
-
fingerprint: string;
|
|
311
|
-
taskName: string;
|
|
312
|
-
unitId: string;
|
|
313
|
-
labels: string[];
|
|
314
|
-
casAddress: string;
|
|
315
|
-
file: string;
|
|
316
|
-
taskKind?: unknown;
|
|
317
|
-
}>, z.ZodObject<{
|
|
318
|
-
/**
|
|
319
|
-
* Indicates the planning phase is complete. This step occurs once per build, before task execution begins.
|
|
320
|
-
*/
|
|
321
|
-
step: z.ZodLiteral<"PLAN_PREPARED">;
|
|
322
|
-
/**
|
|
323
|
-
* List of all task names within the current build scope. The scope is determined by the goals or labels provided to build-raptor.
|
|
324
|
-
* This list:
|
|
325
|
-
* - Includes tasks that may be skipped due to caching
|
|
326
|
-
* - Excludes tasks from modules not included in this build scope.
|
|
327
|
-
*/
|
|
328
|
-
taskNames: z.ZodArray<z.ZodString, "many">;
|
|
329
|
-
}, "strip", z.ZodTypeAny, {
|
|
330
|
-
step: "PLAN_PREPARED";
|
|
331
|
-
taskNames: string[];
|
|
332
|
-
}, {
|
|
333
|
-
step: "PLAN_PREPARED";
|
|
334
|
-
taskNames: string[];
|
|
335
|
-
}>, z.ZodObject<{
|
|
336
|
-
step: z.ZodLiteral<"PUBLIC_FILES">;
|
|
337
|
-
taskName: z.ZodString;
|
|
338
|
-
/**
|
|
339
|
-
* Maps path-in-repo (of "public output" files) to the hash of the content of the file.
|
|
340
|
-
*/
|
|
341
|
-
publicFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
342
|
-
}, "strip", z.ZodTypeAny, {
|
|
343
|
-
step: "PUBLIC_FILES";
|
|
344
|
-
taskName: string;
|
|
345
|
-
publicFiles: Record<string, string>;
|
|
346
|
-
}, {
|
|
347
|
-
step: "PUBLIC_FILES";
|
|
348
|
-
taskName: string;
|
|
349
|
-
publicFiles: Record<string, string>;
|
|
350
|
-
}>]>, "many">;
|
|
351
|
-
export type StepByStep = z.infer<typeof StepByStep>;
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StepByStep = exports.Step = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
/**
|
|
6
|
-
* Represents a union of possible build step types, discriminated by the 'step' field.
|
|
7
|
-
* Each step type contains specific information about different phases of the build process.
|
|
8
|
-
*/
|
|
9
|
-
exports.Step = zod_1.z.discriminatedUnion('step', [
|
|
10
|
-
zod_1.z.object({
|
|
11
|
-
step: zod_1.z.literal('BUILD_RUN_STARTED'),
|
|
12
|
-
buildRunId: zod_1.z.string(),
|
|
13
|
-
commitHash: zod_1.z.string().optional(),
|
|
14
|
-
}),
|
|
15
|
-
zod_1.z.object({
|
|
16
|
-
step: zod_1.z.literal('BUILD_RUN_ENDED'),
|
|
17
|
-
}),
|
|
18
|
-
zod_1.z.object({
|
|
19
|
-
step: zod_1.z.literal('TASK_STORE_PUT'),
|
|
20
|
-
fingerprint: zod_1.z.string().optional(),
|
|
21
|
-
taskName: zod_1.z.string(),
|
|
22
|
-
unitId: zod_1.z.string(),
|
|
23
|
-
taskKind: zod_1.z.string(),
|
|
24
|
-
blobId: zod_1.z.string(),
|
|
25
|
-
files: zod_1.z.string().array(),
|
|
26
|
-
}),
|
|
27
|
-
zod_1.z.object({
|
|
28
|
-
step: zod_1.z.literal('TASK_STORE_GET'),
|
|
29
|
-
fingerprint: zod_1.z.string().optional(),
|
|
30
|
-
taskName: zod_1.z.string(),
|
|
31
|
-
unitId: zod_1.z.string(),
|
|
32
|
-
taskKind: zod_1.z.string(),
|
|
33
|
-
blobId: zod_1.z.string(),
|
|
34
|
-
files: zod_1.z.string().array(),
|
|
35
|
-
}),
|
|
36
|
-
zod_1.z.object({
|
|
37
|
-
step: zod_1.z.literal('TEST_ENDED'),
|
|
38
|
-
taskName: zod_1.z.string(),
|
|
39
|
-
fileName: zod_1.z.string(),
|
|
40
|
-
testPath: zod_1.z.string().array(),
|
|
41
|
-
durationMillis: zod_1.z.number().or(zod_1.z.undefined()),
|
|
42
|
-
verdict: zod_1.z.union([
|
|
43
|
-
zod_1.z.literal('TEST_PASSED'),
|
|
44
|
-
zod_1.z.literal('TEST_FAILED'),
|
|
45
|
-
zod_1.z.literal('TEST_CRASHED'),
|
|
46
|
-
zod_1.z.literal('TEST_TIMEDOUT'),
|
|
47
|
-
]),
|
|
48
|
-
}),
|
|
49
|
-
/**
|
|
50
|
-
* Indicates the completion of a build task. This step is emitted when a task either completes execution or is
|
|
51
|
-
* determined to be skippable due to caching.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* // Example of a successfully executed task
|
|
55
|
-
* {
|
|
56
|
-
* step: 'TASK_ENDED',
|
|
57
|
-
* taskName: 'webapp:build',
|
|
58
|
-
* verdict: 'OK',
|
|
59
|
-
* executionType: 'EXECUTED'
|
|
60
|
-
* }
|
|
61
|
-
*
|
|
62
|
-
* // Example of a skipped task due to cache hit
|
|
63
|
-
* {
|
|
64
|
-
* step: 'TASK_ENDED',
|
|
65
|
-
* taskName: 'webapp:test',
|
|
66
|
-
* verdict: 'OK',
|
|
67
|
-
* executionType: 'CACHED'
|
|
68
|
-
* }
|
|
69
|
-
*/
|
|
70
|
-
zod_1.z.object({
|
|
71
|
-
step: zod_1.z.literal('TASK_ENDED'),
|
|
72
|
-
/** The fully qualified name of the task (e.g., 'my-module:build') */
|
|
73
|
-
taskName: zod_1.z.string(),
|
|
74
|
-
/** The final verdict that represents whether the task succeeded or failed */
|
|
75
|
-
verdict: zod_1.z.union([
|
|
76
|
-
/** Task executed and completed successfully */
|
|
77
|
-
zod_1.z.literal('OK'),
|
|
78
|
-
/** Task executed but failed with an error code */
|
|
79
|
-
zod_1.z.literal('FAIL'),
|
|
80
|
-
/** Task execution terminated unexpectedly (e.g., ran out of memory) */
|
|
81
|
-
zod_1.z.literal('CRASH'),
|
|
82
|
-
/** Task verdict is indeterminate due to an unexpected failure of the build system */
|
|
83
|
-
zod_1.z.literal('UNKNOWN'),
|
|
84
|
-
]),
|
|
85
|
-
/** Indicates how the task was processed during the build run */
|
|
86
|
-
executionType: zod_1.z.union([
|
|
87
|
-
/** Task was executed in this build run */
|
|
88
|
-
zod_1.z.literal('EXECUTED'),
|
|
89
|
-
/** Task outputs were retrieved from cache without execution */
|
|
90
|
-
zod_1.z.literal('CACHED'),
|
|
91
|
-
/** Task could not be started (typically due to a 'FAIL' verdict in a dependency task) */
|
|
92
|
-
zod_1.z.literal('CANNOT_START'),
|
|
93
|
-
/** Execution type is indeterminate due to an unexpected failure of the build system */
|
|
94
|
-
zod_1.z.literal('UNKNOWN'),
|
|
95
|
-
]),
|
|
96
|
-
/** Duration of the task execution in milliseconds (optional for backwards compatibility) */
|
|
97
|
-
durationMillis: zod_1.z.number().optional(),
|
|
98
|
-
}),
|
|
99
|
-
zod_1.z.object({
|
|
100
|
-
step: zod_1.z.literal('ASSET_PUBLISHED'),
|
|
101
|
-
labels: zod_1.z.string().array(),
|
|
102
|
-
taskName: zod_1.z.string(),
|
|
103
|
-
unitId: zod_1.z.string(),
|
|
104
|
-
taskKind: zod_1.z.unknown(),
|
|
105
|
-
fingerprint: zod_1.z.string(),
|
|
106
|
-
casAddress: zod_1.z.string(),
|
|
107
|
-
file: zod_1.z.string(),
|
|
108
|
-
}),
|
|
109
|
-
zod_1.z.object({
|
|
110
|
-
/**
|
|
111
|
-
* Indicates the planning phase is complete. This step occurs once per build, before task execution begins.
|
|
112
|
-
*/
|
|
113
|
-
step: zod_1.z.literal('PLAN_PREPARED'),
|
|
114
|
-
/**
|
|
115
|
-
* List of all task names within the current build scope. The scope is determined by the goals or labels provided to build-raptor.
|
|
116
|
-
* This list:
|
|
117
|
-
* - Includes tasks that may be skipped due to caching
|
|
118
|
-
* - Excludes tasks from modules not included in this build scope.
|
|
119
|
-
*/
|
|
120
|
-
taskNames: zod_1.z.string().array(),
|
|
121
|
-
}),
|
|
122
|
-
zod_1.z.object({
|
|
123
|
-
step: zod_1.z.literal('PUBLIC_FILES'),
|
|
124
|
-
taskName: zod_1.z.string(),
|
|
125
|
-
/**
|
|
126
|
-
* Maps path-in-repo (of "public output" files) to the hash of the content of the file.
|
|
127
|
-
*/
|
|
128
|
-
publicFiles: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
|
129
|
-
}),
|
|
130
|
-
]);
|
|
131
|
-
exports.StepByStep = exports.Step.array();
|
|
132
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGQtcmFwdG9yLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9idWlsZC1yYXB0b3ItYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDZCQUF1Qj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E1BQU0sRUFBRTtRQUNwQixNQUFNLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRTtRQUNsQixRQUFRLEVBQUUsT0FBQyxDQUFDLE9BQU8sRUFBRTtRQUNyQixXQUFXLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRTtRQUN2QixVQUFVLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRTtRQUN0QixJQUFJLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRTtLQUNqQixDQUFDO0lBQ0YsT0FBQyxDQUFDLE1BQU0sQ0FBQztRQUNQOztXQUVHO1FBQ0gsSUFBSSxFQUFFLE9BQUMsQ0FBQyxPQUFPLENBQUMsZUFBZSxDQUFDO1FBQ2hDOzs7OztXQUtHO1FBQ0gsU0FBUyxFQUFFLE9BQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxLQUFLLEVBQUU7S0FDOUIsQ0FBQztJQUNGLE9BQUMsQ0FBQyxNQUFNLENBQUM7UUFDUCxJQUFJLEVBQUUsT0FBQyxDQUFDLE9BQU8sQ0FBQyxjQUFjLENBQUM7UUFDL0IsUUFBUSxFQUFFLE9BQUMsQ0FBQyxNQUFNLEVBQUU7UUFDcEI7O1dBRUc7UUFDSCxXQUFXLEVBQUUsT0FBQyxDQUFDLE1BQU0sQ0FBQyxPQUFDLENBQUMsTUFBTSxFQUFFLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDO0tBQzlDLENBQUM7Q0FDSCxDQUFDLENBQUE7QUFPVyxRQUFBLFVBQVUsR0FBRyxZQUFJLENBQUMsS0FBSyxFQUFFLENBQUEifQ==
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./build-raptor-api"), exports);
|
|
18
|
-
__exportStar(require("./step-by-step-processor"), exports);
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHFEQUFrQztBQUNsQywyREFBd0MifQ==
|