@kitsi/action 0.0.15 → 0.0.17
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/dist/index.js +172 -329
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -99672,7 +99672,7 @@ var require_fxp2 = __commonJS((exports, module) => {
|
|
|
99672
99672
|
});
|
|
99673
99673
|
|
|
99674
99674
|
// ../../node_modules/.bun/picomatch@4.0.3/node_modules/picomatch/lib/constants.js
|
|
99675
|
-
var require_constants14 = __commonJS((exports,
|
|
99675
|
+
var require_constants14 = __commonJS((exports, module) => {
|
|
99676
99676
|
var WIN_SLASH = "\\\\/";
|
|
99677
99677
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
99678
99678
|
var DOT_LITERAL = "\\.";
|
|
@@ -99740,7 +99740,7 @@ var require_constants14 = __commonJS((exports, module2) => {
|
|
|
99740
99740
|
word: "A-Za-z0-9_",
|
|
99741
99741
|
xdigit: "A-Fa-f0-9"
|
|
99742
99742
|
};
|
|
99743
|
-
|
|
99743
|
+
module.exports = {
|
|
99744
99744
|
MAX_LENGTH: 1024 * 64,
|
|
99745
99745
|
POSIX_REGEX_SOURCE,
|
|
99746
99746
|
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
@@ -99877,7 +99877,7 @@ var require_utils9 = __commonJS((exports) => {
|
|
|
99877
99877
|
});
|
|
99878
99878
|
|
|
99879
99879
|
// ../../node_modules/.bun/picomatch@4.0.3/node_modules/picomatch/lib/scan.js
|
|
99880
|
-
var require_scan = __commonJS((exports,
|
|
99880
|
+
var require_scan = __commonJS((exports, module) => {
|
|
99881
99881
|
var utils = require_utils9();
|
|
99882
99882
|
var {
|
|
99883
99883
|
CHAR_ASTERISK,
|
|
@@ -100188,11 +100188,11 @@ var require_scan = __commonJS((exports, module2) => {
|
|
|
100188
100188
|
}
|
|
100189
100189
|
return state;
|
|
100190
100190
|
};
|
|
100191
|
-
|
|
100191
|
+
module.exports = scan;
|
|
100192
100192
|
});
|
|
100193
100193
|
|
|
100194
100194
|
// ../../node_modules/.bun/picomatch@4.0.3/node_modules/picomatch/lib/parse.js
|
|
100195
|
-
var require_parse2 = __commonJS((exports,
|
|
100195
|
+
var require_parse2 = __commonJS((exports, module) => {
|
|
100196
100196
|
var constants = require_constants14();
|
|
100197
100197
|
var utils = require_utils9();
|
|
100198
100198
|
var {
|
|
@@ -100604,11 +100604,11 @@ var require_parse2 = __commonJS((exports, module2) => {
|
|
|
100604
100604
|
state.backtrack = true;
|
|
100605
100605
|
}
|
|
100606
100606
|
if (brace.comma !== true && brace.dots !== true) {
|
|
100607
|
-
const
|
|
100607
|
+
const out = state.output.slice(0, brace.outputIndex);
|
|
100608
100608
|
const toks = state.tokens.slice(brace.tokensIndex);
|
|
100609
100609
|
brace.value = brace.output = "\\{";
|
|
100610
100610
|
value = output = "\\}";
|
|
100611
|
-
state.output =
|
|
100611
|
+
state.output = out;
|
|
100612
100612
|
for (const t of toks) {
|
|
100613
100613
|
state.output += t.output || t.value;
|
|
100614
100614
|
}
|
|
@@ -100961,11 +100961,11 @@ var require_parse2 = __commonJS((exports, module2) => {
|
|
|
100961
100961
|
}
|
|
100962
100962
|
return source;
|
|
100963
100963
|
};
|
|
100964
|
-
|
|
100964
|
+
module.exports = parse;
|
|
100965
100965
|
});
|
|
100966
100966
|
|
|
100967
100967
|
// ../../node_modules/.bun/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.js
|
|
100968
|
-
var require_picomatch = __commonJS((exports,
|
|
100968
|
+
var require_picomatch = __commonJS((exports, module) => {
|
|
100969
100969
|
var scan = require_scan();
|
|
100970
100970
|
var parse = require_parse2();
|
|
100971
100971
|
var utils = require_utils9();
|
|
@@ -101101,11 +101101,11 @@ var require_picomatch = __commonJS((exports, module2) => {
|
|
|
101101
101101
|
}
|
|
101102
101102
|
};
|
|
101103
101103
|
picomatch.constants = constants;
|
|
101104
|
-
|
|
101104
|
+
module.exports = picomatch;
|
|
101105
101105
|
});
|
|
101106
101106
|
|
|
101107
101107
|
// ../../node_modules/.bun/picomatch@4.0.3/node_modules/picomatch/index.js
|
|
101108
|
-
var require_picomatch2 = __commonJS((exports,
|
|
101108
|
+
var require_picomatch2 = __commonJS((exports, module) => {
|
|
101109
101109
|
var pico = require_picomatch();
|
|
101110
101110
|
var utils = require_utils9();
|
|
101111
101111
|
function picomatch(glob3, options, returnState = false) {
|
|
@@ -101115,11 +101115,11 @@ var require_picomatch2 = __commonJS((exports, module2) => {
|
|
|
101115
101115
|
return pico(glob3, options, returnState);
|
|
101116
101116
|
}
|
|
101117
101117
|
Object.assign(picomatch, pico);
|
|
101118
|
-
|
|
101118
|
+
module.exports = picomatch;
|
|
101119
101119
|
});
|
|
101120
101120
|
|
|
101121
101121
|
// src/index.ts
|
|
101122
|
-
var
|
|
101122
|
+
var core7 = __toESM(require_core(), 1);
|
|
101123
101123
|
|
|
101124
101124
|
// src/capabilities/annotations.ts
|
|
101125
101125
|
var core = __toESM(require_core(), 1);
|
|
@@ -101566,9 +101566,9 @@ class GroupManager {
|
|
|
101566
101566
|
import { resolve as resolvePath2 } from "node:path";
|
|
101567
101567
|
import { pathToFileURL } from "node:url";
|
|
101568
101568
|
|
|
101569
|
-
// ../
|
|
101569
|
+
// ../core/dist/version.js
|
|
101570
101570
|
var VERSION = "0.0.1";
|
|
101571
|
-
// ../
|
|
101571
|
+
// ../core/dist/dsl/plan.js
|
|
101572
101572
|
var clonePlan = (plan, patch) => new PlanBuilder((() => {
|
|
101573
101573
|
const next = {
|
|
101574
101574
|
name: patch.name ?? plan.config.name,
|
|
@@ -101662,7 +101662,7 @@ var plan = (name) => new PlanBuilder({
|
|
|
101662
101662
|
concurrency: {},
|
|
101663
101663
|
tasks: []
|
|
101664
101664
|
});
|
|
101665
|
-
// ../
|
|
101665
|
+
// ../core/dist/dsl/task.js
|
|
101666
101666
|
var cloneTask = (task, patch) => new TaskBuilder({
|
|
101667
101667
|
...task.config,
|
|
101668
101668
|
...patch,
|
|
@@ -101715,7 +101715,11 @@ class TaskBuilder {
|
|
|
101715
101715
|
needs(...tasks) {
|
|
101716
101716
|
const ids = new Set(this.config.needs);
|
|
101717
101717
|
for (const task of tasks) {
|
|
101718
|
-
|
|
101718
|
+
if (typeof task === "string") {
|
|
101719
|
+
ids.add(task);
|
|
101720
|
+
} else {
|
|
101721
|
+
ids.add(task.config.name);
|
|
101722
|
+
}
|
|
101719
101723
|
}
|
|
101720
101724
|
return cloneTask(this, { needs: Array.from(ids) });
|
|
101721
101725
|
}
|
|
@@ -101729,7 +101733,7 @@ var task = (name) => new TaskBuilder({
|
|
|
101729
101733
|
inputs: [],
|
|
101730
101734
|
cacheEnv: []
|
|
101731
101735
|
});
|
|
101732
|
-
// ../
|
|
101736
|
+
// ../core/dist/dsl/step.js
|
|
101733
101737
|
class StepBuilder {
|
|
101734
101738
|
name;
|
|
101735
101739
|
run;
|
|
@@ -101746,7 +101750,7 @@ class StepBuilder {
|
|
|
101746
101750
|
}
|
|
101747
101751
|
}
|
|
101748
101752
|
var step = (name, run) => new StepBuilder(name, run);
|
|
101749
|
-
// ../
|
|
101753
|
+
// ../core/dist/dsl/kit.js
|
|
101750
101754
|
var cloneKit = (kit, patch) => new KitBuilder({
|
|
101751
101755
|
...kit.config,
|
|
101752
101756
|
...patch,
|
|
@@ -101780,7 +101784,7 @@ class KitBuilder {
|
|
|
101780
101784
|
}
|
|
101781
101785
|
}
|
|
101782
101786
|
var kit = (name) => new KitBuilder({ name, env: {}, setupSteps: [] });
|
|
101783
|
-
// ../
|
|
101787
|
+
// ../core/dist/dsl/image.js
|
|
101784
101788
|
class ImageBuilder {
|
|
101785
101789
|
config;
|
|
101786
101790
|
constructor(config) {
|
|
@@ -101794,7 +101798,7 @@ class ImageBuilder {
|
|
|
101794
101798
|
}
|
|
101795
101799
|
}
|
|
101796
101800
|
var image = (ref) => new ImageBuilder({ ref, env: {} });
|
|
101797
|
-
// ../
|
|
101801
|
+
// ../core/dist/dsl/service.js
|
|
101798
101802
|
class ServiceBuilder {
|
|
101799
101803
|
config;
|
|
101800
101804
|
constructor(config) {
|
|
@@ -101814,11 +101818,11 @@ class ServiceBuilder {
|
|
|
101814
101818
|
}
|
|
101815
101819
|
}
|
|
101816
101820
|
var service = (imageRef) => new ServiceBuilder({ image: imageRef, env: {}, ports: [] });
|
|
101817
|
-
// ../
|
|
101821
|
+
// ../core/dist/dsl/registry.js
|
|
101818
101822
|
var registry = (...plansList) => ({
|
|
101819
101823
|
plans: plansList
|
|
101820
101824
|
});
|
|
101821
|
-
// ../
|
|
101825
|
+
// ../core/dist/ops/operation.js
|
|
101822
101826
|
var isOperation = (value) => {
|
|
101823
101827
|
if (!value || typeof value !== "object")
|
|
101824
101828
|
return false;
|
|
@@ -101826,7 +101830,7 @@ var isOperation = (value) => {
|
|
|
101826
101830
|
return typeof op.kind === "string" && typeof op.toOp === "function" && typeof op.analysisPlaceholder === "function" && typeof op.extractDependencies === "function" && typeof op.extractSecrets === "function" && typeof op.extractRefs === "function" && typeof op.cacheNormalize === "function" && typeof op.cachePlaceholder === "function";
|
|
101827
101831
|
};
|
|
101828
101832
|
|
|
101829
|
-
// ../
|
|
101833
|
+
// ../core/dist/dsl/analysis.js
|
|
101830
101834
|
var stepIterator = (step2, task2) => {
|
|
101831
101835
|
return step2.run({ task: task2, workspace: "" });
|
|
101832
101836
|
};
|
|
@@ -101864,14 +101868,14 @@ var collectSecrets = (tasks) => {
|
|
|
101864
101868
|
}
|
|
101865
101869
|
return secrets;
|
|
101866
101870
|
};
|
|
101867
|
-
// ../
|
|
101871
|
+
// ../core/dist/dsl/utils.js
|
|
101868
101872
|
import { resolve as resolvePath } from "node:path";
|
|
101869
101873
|
var resolveWorkspace = (workspace) => {
|
|
101870
101874
|
if (!workspace)
|
|
101871
101875
|
return process.cwd();
|
|
101872
101876
|
return workspace.startsWith(".") ? resolvePath(process.cwd(), workspace) : workspace;
|
|
101873
101877
|
};
|
|
101874
|
-
// ../
|
|
101878
|
+
// ../core/dist/ops/errors.js
|
|
101875
101879
|
class OpErrorBuilder {
|
|
101876
101880
|
type;
|
|
101877
101881
|
message;
|
|
@@ -101912,7 +101916,9 @@ var OpErrors = {
|
|
|
101912
101916
|
service: (message) => new OpErrorBuilder("service", message),
|
|
101913
101917
|
timeout: (message) => new OpErrorBuilder("timeout", message)
|
|
101914
101918
|
};
|
|
101915
|
-
// ../
|
|
101919
|
+
// ../core/dist/ops/template.js
|
|
101920
|
+
var isTemplateStringsArray = (value) => Array.isArray(value) && Object.prototype.hasOwnProperty.call(value, "raw");
|
|
101921
|
+
var isTemplatePartArray = (value) => Array.isArray(value) && (value.length === 0 || typeof value[0] === "object" && value[0] !== null && ("type" in value[0]));
|
|
101916
101922
|
var toTemplatePart = (value) => {
|
|
101917
101923
|
if (typeof value === "string" || typeof value === "number") {
|
|
101918
101924
|
return { type: "interpolated", value: String(value) };
|
|
@@ -101925,6 +101931,32 @@ var toTemplatePart = (value) => {
|
|
|
101925
101931
|
}
|
|
101926
101932
|
return { type: "value", ref: value };
|
|
101927
101933
|
};
|
|
101934
|
+
var buildTemplateParts = (strings, values) => {
|
|
101935
|
+
const template = [];
|
|
101936
|
+
for (let i = 0;i < strings.length; i += 1) {
|
|
101937
|
+
const text = strings[i] ?? "";
|
|
101938
|
+
if (text.length > 0) {
|
|
101939
|
+
template.push({ type: "text", value: text });
|
|
101940
|
+
}
|
|
101941
|
+
const value = values[i];
|
|
101942
|
+
if (i < values.length && value !== undefined) {
|
|
101943
|
+
template.push(toTemplatePart(value));
|
|
101944
|
+
}
|
|
101945
|
+
}
|
|
101946
|
+
return template;
|
|
101947
|
+
};
|
|
101948
|
+
var templateFromInput = (input, values) => {
|
|
101949
|
+
if (isTemplateStringsArray(input)) {
|
|
101950
|
+
return buildTemplateParts(input, values);
|
|
101951
|
+
}
|
|
101952
|
+
if (isTemplatePartArray(input)) {
|
|
101953
|
+
return input;
|
|
101954
|
+
}
|
|
101955
|
+
if (Array.isArray(input)) {
|
|
101956
|
+
return input.map((part) => toTemplatePart(part));
|
|
101957
|
+
}
|
|
101958
|
+
return [toTemplatePart(input)];
|
|
101959
|
+
};
|
|
101928
101960
|
var collectTemplateMetadata = (template, addSecret, addParam) => {
|
|
101929
101961
|
for (const part of template) {
|
|
101930
101962
|
if (part.type === "secret")
|
|
@@ -101933,6 +101965,14 @@ var collectTemplateMetadata = (template, addSecret, addParam) => {
|
|
|
101933
101965
|
addParam(part.ref.name);
|
|
101934
101966
|
}
|
|
101935
101967
|
};
|
|
101968
|
+
var collectTemplateSecrets = (template) => {
|
|
101969
|
+
const names = new Set;
|
|
101970
|
+
for (const part of template) {
|
|
101971
|
+
if (part.type === "secret")
|
|
101972
|
+
names.add(part.name);
|
|
101973
|
+
}
|
|
101974
|
+
return Array.from(names);
|
|
101975
|
+
};
|
|
101936
101976
|
var normalizeTemplatePart = (part) => {
|
|
101937
101977
|
if (part.type === "text" || part.type === "interpolated") {
|
|
101938
101978
|
return { type: part.type, value: part.value };
|
|
@@ -101957,6 +101997,7 @@ var commandSignature = (template) => {
|
|
|
101957
101997
|
return raw.replace(/\s+/g, " ").trim();
|
|
101958
101998
|
};
|
|
101959
101999
|
|
|
102000
|
+
// ../core/dist/ops/shell.js
|
|
101960
102001
|
class CommandBuilder {
|
|
101961
102002
|
op;
|
|
101962
102003
|
constructor(op) {
|
|
@@ -102021,90 +102062,15 @@ class CommandBuilder {
|
|
|
102021
102062
|
}
|
|
102022
102063
|
}
|
|
102023
102064
|
var sh = (strings, ...values) => {
|
|
102024
|
-
const template =
|
|
102025
|
-
for (let i = 0;i < strings.length; i += 1) {
|
|
102026
|
-
const text = strings[i] ?? "";
|
|
102027
|
-
if (text.length > 0) {
|
|
102028
|
-
template.push({ type: "text", value: text });
|
|
102029
|
-
}
|
|
102030
|
-
const value = values[i];
|
|
102031
|
-
if (i < values.length && value !== undefined) {
|
|
102032
|
-
template.push(toTemplatePart(value));
|
|
102033
|
-
}
|
|
102034
|
-
}
|
|
102065
|
+
const template = buildTemplateParts(strings, values);
|
|
102035
102066
|
return new CommandBuilder({
|
|
102036
102067
|
kind: "command",
|
|
102037
102068
|
capture: "result",
|
|
102038
102069
|
template
|
|
102039
102070
|
});
|
|
102040
102071
|
};
|
|
102041
|
-
// ../
|
|
102042
|
-
var isTemplateStringsArray = (value) => Array.isArray(value) && Object.prototype.hasOwnProperty.call(value, "raw");
|
|
102043
|
-
var isTemplatePartArray = (value) => Array.isArray(value) && (value.length === 0 || typeof value[0] === "object" && value[0] !== null && ("type" in value[0]));
|
|
102044
|
-
var toTemplatePart2 = (value) => {
|
|
102045
|
-
if (typeof value === "string" || typeof value === "number") {
|
|
102046
|
-
return { type: "interpolated", value: String(value) };
|
|
102047
|
-
}
|
|
102048
|
-
if (value.kind === "secret") {
|
|
102049
|
-
return { type: "secret", name: value.name };
|
|
102050
|
-
}
|
|
102051
|
-
if (value.kind === "param") {
|
|
102052
|
-
return { type: "param", ref: value };
|
|
102053
|
-
}
|
|
102054
|
-
return { type: "value", ref: value };
|
|
102055
|
-
};
|
|
102056
|
-
var buildTemplateParts = (strings, values) => {
|
|
102057
|
-
const template = [];
|
|
102058
|
-
for (let i = 0;i < strings.length; i += 1) {
|
|
102059
|
-
const text = strings[i] ?? "";
|
|
102060
|
-
if (text.length > 0) {
|
|
102061
|
-
template.push({ type: "text", value: text });
|
|
102062
|
-
}
|
|
102063
|
-
const value = values[i];
|
|
102064
|
-
if (i < values.length && value !== undefined) {
|
|
102065
|
-
template.push(toTemplatePart2(value));
|
|
102066
|
-
}
|
|
102067
|
-
}
|
|
102068
|
-
return template;
|
|
102069
|
-
};
|
|
102070
|
-
var templateFromInput = (input, values) => {
|
|
102071
|
-
if (isTemplateStringsArray(input)) {
|
|
102072
|
-
return buildTemplateParts(input, values);
|
|
102073
|
-
}
|
|
102074
|
-
if (isTemplatePartArray(input)) {
|
|
102075
|
-
return input;
|
|
102076
|
-
}
|
|
102077
|
-
if (Array.isArray(input)) {
|
|
102078
|
-
return input.map((part) => toTemplatePart2(part));
|
|
102079
|
-
}
|
|
102080
|
-
return [toTemplatePart2(input)];
|
|
102081
|
-
};
|
|
102072
|
+
// ../core/dist/ops/http.js
|
|
102082
102073
|
var hasHeader = (headers, name) => headers.some((header) => header.name.toLowerCase() === name.toLowerCase());
|
|
102083
|
-
var collectTemplateSecrets = (template) => {
|
|
102084
|
-
const names = new Set;
|
|
102085
|
-
for (const part of template) {
|
|
102086
|
-
if (part.type === "secret")
|
|
102087
|
-
names.add(part.name);
|
|
102088
|
-
}
|
|
102089
|
-
return Array.from(names);
|
|
102090
|
-
};
|
|
102091
|
-
var collectTemplateMetadata2 = (template, addSecret, addParam) => {
|
|
102092
|
-
for (const part of template) {
|
|
102093
|
-
if (part.type === "secret")
|
|
102094
|
-
addSecret(part.name);
|
|
102095
|
-
if (part.type === "param")
|
|
102096
|
-
addParam(part.ref.name);
|
|
102097
|
-
}
|
|
102098
|
-
};
|
|
102099
|
-
var normalizeTemplatePart2 = (part) => {
|
|
102100
|
-
if (part.type === "text" || part.type === "interpolated") {
|
|
102101
|
-
return { type: part.type, value: part.value };
|
|
102102
|
-
}
|
|
102103
|
-
if (part.type === "secret") {
|
|
102104
|
-
return { type: part.type, name: part.name };
|
|
102105
|
-
}
|
|
102106
|
-
return { type: part.type, name: part.ref.name };
|
|
102107
|
-
};
|
|
102108
102074
|
|
|
102109
102075
|
class HttpBuilder {
|
|
102110
102076
|
op;
|
|
@@ -102141,22 +102107,22 @@ class HttpBuilder {
|
|
|
102141
102107
|
return [];
|
|
102142
102108
|
}
|
|
102143
102109
|
cacheNormalize(context) {
|
|
102144
|
-
|
|
102110
|
+
collectTemplateMetadata(this.op.url, context.addSecret, context.addParam);
|
|
102145
102111
|
for (const header of this.op.headers) {
|
|
102146
|
-
|
|
102112
|
+
collectTemplateMetadata(header.value, context.addSecret, context.addParam);
|
|
102147
102113
|
}
|
|
102148
102114
|
if (this.op.body) {
|
|
102149
|
-
|
|
102115
|
+
collectTemplateMetadata(this.op.body, context.addSecret, context.addParam);
|
|
102150
102116
|
}
|
|
102151
102117
|
return {
|
|
102152
102118
|
kind: this.op.kind,
|
|
102153
102119
|
method: this.op.method,
|
|
102154
|
-
url: this.op.url.map(
|
|
102120
|
+
url: this.op.url.map(normalizeTemplatePart),
|
|
102155
102121
|
headers: this.op.headers.map((header) => ({
|
|
102156
102122
|
name: header.name,
|
|
102157
|
-
value: header.value.map(
|
|
102123
|
+
value: header.value.map(normalizeTemplatePart)
|
|
102158
102124
|
})),
|
|
102159
|
-
body: this.op.body ? this.op.body.map(
|
|
102125
|
+
body: this.op.body ? this.op.body.map(normalizeTemplatePart) : null,
|
|
102160
102126
|
bodyPath: this.op.bodyPath ?? null
|
|
102161
102127
|
};
|
|
102162
102128
|
}
|
|
@@ -102211,12 +102177,12 @@ var http = {
|
|
|
102211
102177
|
head: (url, ...values) => buildRequest("HEAD", url, values),
|
|
102212
102178
|
options: (url, ...values) => buildRequest("OPTIONS", url, values)
|
|
102213
102179
|
};
|
|
102214
|
-
// ../
|
|
102180
|
+
// ../core/dist/ops/types.js
|
|
102215
102181
|
var isSecretRef = (value) => value.kind === "secret";
|
|
102216
102182
|
var isParamRef = (value) => value.kind === "param";
|
|
102217
102183
|
var isValueRef = (value) => value.kind === "value";
|
|
102218
102184
|
|
|
102219
|
-
// ../
|
|
102185
|
+
// ../core/dist/ops/env.js
|
|
102220
102186
|
class EnvOperation {
|
|
102221
102187
|
name;
|
|
102222
102188
|
value;
|
|
@@ -102278,9 +102244,9 @@ class EnvOperation {
|
|
|
102278
102244
|
}
|
|
102279
102245
|
}
|
|
102280
102246
|
var env = (name, value) => new EnvOperation(name, value);
|
|
102281
|
-
// ../
|
|
102247
|
+
// ../core/dist/ops/secret.js
|
|
102282
102248
|
var secret = (name) => ({ kind: "secret", name });
|
|
102283
|
-
// ../
|
|
102249
|
+
// ../core/dist/ops/ref.js
|
|
102284
102250
|
var coerce = {
|
|
102285
102251
|
string: (value) => String(value),
|
|
102286
102252
|
number: (value) => Number(value),
|
|
@@ -102302,12 +102268,32 @@ var createRefFactory = (kind) => {
|
|
|
102302
102268
|
};
|
|
102303
102269
|
var param = createRefFactory("param");
|
|
102304
102270
|
var out = createRefFactory("value");
|
|
102305
|
-
// ../
|
|
102306
|
-
class
|
|
102271
|
+
// ../core/dist/ops/operation-base.js
|
|
102272
|
+
class OperationBase {
|
|
102273
|
+
analysisPlaceholder() {
|
|
102274
|
+
return;
|
|
102275
|
+
}
|
|
102276
|
+
extractDependencies(_taskName) {
|
|
102277
|
+
return [];
|
|
102278
|
+
}
|
|
102279
|
+
extractSecrets() {
|
|
102280
|
+
return [];
|
|
102281
|
+
}
|
|
102282
|
+
extractRefs() {
|
|
102283
|
+
return [];
|
|
102284
|
+
}
|
|
102285
|
+
cachePlaceholder(context) {
|
|
102286
|
+
return context.value;
|
|
102287
|
+
}
|
|
102288
|
+
}
|
|
102289
|
+
|
|
102290
|
+
// ../core/dist/ops/cache.js
|
|
102291
|
+
class CacheOperation extends OperationBase {
|
|
102307
102292
|
name;
|
|
102308
102293
|
paths;
|
|
102309
102294
|
key;
|
|
102310
102295
|
constructor(name, paths, key) {
|
|
102296
|
+
super();
|
|
102311
102297
|
this.name = name;
|
|
102312
102298
|
this.paths = paths;
|
|
102313
102299
|
if (key)
|
|
@@ -102324,18 +102310,6 @@ class CacheOperation {
|
|
|
102324
102310
|
...this.key ? { key: this.key } : {}
|
|
102325
102311
|
};
|
|
102326
102312
|
}
|
|
102327
|
-
analysisPlaceholder() {
|
|
102328
|
-
return;
|
|
102329
|
-
}
|
|
102330
|
-
extractDependencies(_taskName) {
|
|
102331
|
-
return [];
|
|
102332
|
-
}
|
|
102333
|
-
extractSecrets() {
|
|
102334
|
-
return [];
|
|
102335
|
-
}
|
|
102336
|
-
extractRefs() {
|
|
102337
|
-
return [];
|
|
102338
|
-
}
|
|
102339
102313
|
cacheNormalize(_context) {
|
|
102340
102314
|
return {
|
|
102341
102315
|
kind: this.kind,
|
|
@@ -102344,17 +102318,15 @@ class CacheOperation {
|
|
|
102344
102318
|
key: this.key ?? null
|
|
102345
102319
|
};
|
|
102346
102320
|
}
|
|
102347
|
-
cachePlaceholder(context) {
|
|
102348
|
-
return context.value;
|
|
102349
|
-
}
|
|
102350
102321
|
}
|
|
102351
102322
|
|
|
102352
|
-
class CacheOrOperation {
|
|
102323
|
+
class CacheOrOperation extends OperationBase {
|
|
102353
102324
|
name;
|
|
102354
102325
|
paths;
|
|
102355
102326
|
key;
|
|
102356
102327
|
compute;
|
|
102357
102328
|
constructor(name, paths, compute, key) {
|
|
102329
|
+
super();
|
|
102358
102330
|
this.name = name;
|
|
102359
102331
|
this.paths = paths;
|
|
102360
102332
|
this.compute = compute;
|
|
@@ -102373,18 +102345,6 @@ class CacheOrOperation {
|
|
|
102373
102345
|
compute: this.compute
|
|
102374
102346
|
};
|
|
102375
102347
|
}
|
|
102376
|
-
analysisPlaceholder() {
|
|
102377
|
-
return;
|
|
102378
|
-
}
|
|
102379
|
-
extractDependencies(_taskName) {
|
|
102380
|
-
return [];
|
|
102381
|
-
}
|
|
102382
|
-
extractSecrets() {
|
|
102383
|
-
return [];
|
|
102384
|
-
}
|
|
102385
|
-
extractRefs() {
|
|
102386
|
-
return [];
|
|
102387
|
-
}
|
|
102388
102348
|
cacheNormalize(context) {
|
|
102389
102349
|
const computeOps = context.analyzeNested(this.compute, context.resultValue);
|
|
102390
102350
|
return {
|
|
@@ -102395,14 +102355,12 @@ class CacheOrOperation {
|
|
|
102395
102355
|
compute: computeOps
|
|
102396
102356
|
};
|
|
102397
102357
|
}
|
|
102398
|
-
cachePlaceholder(context) {
|
|
102399
|
-
return context.value;
|
|
102400
|
-
}
|
|
102401
102358
|
}
|
|
102402
102359
|
|
|
102403
|
-
class CacheMountOperation {
|
|
102360
|
+
class CacheMountOperation extends OperationBase {
|
|
102404
102361
|
cache;
|
|
102405
102362
|
constructor(cache2) {
|
|
102363
|
+
super();
|
|
102406
102364
|
this.cache = cache2;
|
|
102407
102365
|
}
|
|
102408
102366
|
get kind() {
|
|
@@ -102411,24 +102369,9 @@ class CacheMountOperation {
|
|
|
102411
102369
|
toOp() {
|
|
102412
102370
|
return { kind: "cache-mount", cache: this.cache };
|
|
102413
102371
|
}
|
|
102414
|
-
analysisPlaceholder() {
|
|
102415
|
-
return;
|
|
102416
|
-
}
|
|
102417
|
-
extractDependencies(_taskName) {
|
|
102418
|
-
return [];
|
|
102419
|
-
}
|
|
102420
|
-
extractSecrets() {
|
|
102421
|
-
return [];
|
|
102422
|
-
}
|
|
102423
|
-
extractRefs() {
|
|
102424
|
-
return [];
|
|
102425
|
-
}
|
|
102426
102372
|
cacheNormalize(_context) {
|
|
102427
102373
|
return { kind: this.kind };
|
|
102428
102374
|
}
|
|
102429
|
-
cachePlaceholder(context) {
|
|
102430
|
-
return context.value;
|
|
102431
|
-
}
|
|
102432
102375
|
}
|
|
102433
102376
|
var createCacheRef = (name, mountPath, key) => {
|
|
102434
102377
|
const ref = {
|
|
@@ -102448,12 +102391,13 @@ var cacheFn = (name, options) => new CacheOperation(name, options.paths, options
|
|
|
102448
102391
|
cacheFn.dir = (name) => createCacheRef(name);
|
|
102449
102392
|
cacheFn.mount = (ref) => new CacheMountOperation(ref);
|
|
102450
102393
|
var cache2 = cacheFn;
|
|
102451
|
-
// ../
|
|
102452
|
-
class ArtifactUploadOperation {
|
|
102394
|
+
// ../core/dist/ops/artifact.js
|
|
102395
|
+
class ArtifactUploadOperation extends OperationBase {
|
|
102453
102396
|
name;
|
|
102454
102397
|
patterns;
|
|
102455
102398
|
when;
|
|
102456
102399
|
constructor(name, patterns, when) {
|
|
102400
|
+
super();
|
|
102457
102401
|
this.name = name;
|
|
102458
102402
|
this.patterns = patterns;
|
|
102459
102403
|
this.when = when;
|
|
@@ -102464,18 +102408,6 @@ class ArtifactUploadOperation {
|
|
|
102464
102408
|
toOp() {
|
|
102465
102409
|
return { kind: "artifact-upload", name: this.name, patterns: this.patterns, when: this.when };
|
|
102466
102410
|
}
|
|
102467
|
-
analysisPlaceholder() {
|
|
102468
|
-
return;
|
|
102469
|
-
}
|
|
102470
|
-
extractDependencies(_taskName) {
|
|
102471
|
-
return [];
|
|
102472
|
-
}
|
|
102473
|
-
extractSecrets() {
|
|
102474
|
-
return [];
|
|
102475
|
-
}
|
|
102476
|
-
extractRefs() {
|
|
102477
|
-
return [];
|
|
102478
|
-
}
|
|
102479
102411
|
cacheNormalize(_context) {
|
|
102480
102412
|
return {
|
|
102481
102413
|
kind: this.kind,
|
|
@@ -102484,15 +102416,13 @@ class ArtifactUploadOperation {
|
|
|
102484
102416
|
when: this.when
|
|
102485
102417
|
};
|
|
102486
102418
|
}
|
|
102487
|
-
cachePlaceholder(context) {
|
|
102488
|
-
return context.value;
|
|
102489
|
-
}
|
|
102490
102419
|
}
|
|
102491
102420
|
|
|
102492
|
-
class ArtifactDownloadOperation {
|
|
102421
|
+
class ArtifactDownloadOperation extends OperationBase {
|
|
102493
102422
|
name;
|
|
102494
102423
|
destination;
|
|
102495
102424
|
constructor(name, destination) {
|
|
102425
|
+
super();
|
|
102496
102426
|
this.name = name;
|
|
102497
102427
|
this.destination = destination;
|
|
102498
102428
|
}
|
|
@@ -102502,24 +102432,9 @@ class ArtifactDownloadOperation {
|
|
|
102502
102432
|
toOp() {
|
|
102503
102433
|
return { kind: "artifact-download", name: this.name, destination: this.destination };
|
|
102504
102434
|
}
|
|
102505
|
-
analysisPlaceholder() {
|
|
102506
|
-
return;
|
|
102507
|
-
}
|
|
102508
|
-
extractDependencies(_taskName) {
|
|
102509
|
-
return [];
|
|
102510
|
-
}
|
|
102511
|
-
extractSecrets() {
|
|
102512
|
-
return [];
|
|
102513
|
-
}
|
|
102514
|
-
extractRefs() {
|
|
102515
|
-
return [];
|
|
102516
|
-
}
|
|
102517
102435
|
cacheNormalize(_context) {
|
|
102518
102436
|
return { kind: this.kind, name: this.name, destination: this.destination };
|
|
102519
102437
|
}
|
|
102520
|
-
cachePlaceholder(context) {
|
|
102521
|
-
return context.value;
|
|
102522
|
-
}
|
|
102523
102438
|
}
|
|
102524
102439
|
|
|
102525
102440
|
class ArtifactUploadBuilder {
|
|
@@ -102555,7 +102470,7 @@ var artifact2 = {
|
|
|
102555
102470
|
upload: (name) => new ArtifactUploadBuilder(name),
|
|
102556
102471
|
download: (name) => new ArtifactDownloadBuilder(name)
|
|
102557
102472
|
};
|
|
102558
|
-
// ../
|
|
102473
|
+
// ../core/dist/ops/bundle.js
|
|
102559
102474
|
var cloneBundle = (ref, patterns) => ({
|
|
102560
102475
|
...ref,
|
|
102561
102476
|
patterns,
|
|
@@ -102571,9 +102486,10 @@ var createBundleRef = (name) => {
|
|
|
102571
102486
|
return ref;
|
|
102572
102487
|
};
|
|
102573
102488
|
|
|
102574
|
-
class PackOperation {
|
|
102489
|
+
class PackOperation extends OperationBase {
|
|
102575
102490
|
ref;
|
|
102576
102491
|
constructor(ref) {
|
|
102492
|
+
super();
|
|
102577
102493
|
this.ref = ref;
|
|
102578
102494
|
}
|
|
102579
102495
|
get kind() {
|
|
@@ -102582,18 +102498,6 @@ class PackOperation {
|
|
|
102582
102498
|
toOp() {
|
|
102583
102499
|
return { kind: "pack", ref: this.ref };
|
|
102584
102500
|
}
|
|
102585
|
-
analysisPlaceholder() {
|
|
102586
|
-
return;
|
|
102587
|
-
}
|
|
102588
|
-
extractDependencies(_taskName) {
|
|
102589
|
-
return [];
|
|
102590
|
-
}
|
|
102591
|
-
extractSecrets() {
|
|
102592
|
-
return [];
|
|
102593
|
-
}
|
|
102594
|
-
extractRefs() {
|
|
102595
|
-
return [];
|
|
102596
|
-
}
|
|
102597
102501
|
cacheNormalize(_context) {
|
|
102598
102502
|
return { kind: this.kind, name: this.ref.name, patterns: this.ref.patterns };
|
|
102599
102503
|
}
|
|
@@ -102602,10 +102506,11 @@ class PackOperation {
|
|
|
102602
102506
|
}
|
|
102603
102507
|
}
|
|
102604
102508
|
|
|
102605
|
-
class UnpackOperation {
|
|
102509
|
+
class UnpackOperation extends OperationBase {
|
|
102606
102510
|
from;
|
|
102607
102511
|
ref;
|
|
102608
102512
|
constructor(from, ref) {
|
|
102513
|
+
super();
|
|
102609
102514
|
this.from = from;
|
|
102610
102515
|
this.ref = ref;
|
|
102611
102516
|
}
|
|
@@ -102615,15 +102520,9 @@ class UnpackOperation {
|
|
|
102615
102520
|
toOp() {
|
|
102616
102521
|
return { kind: "unpack", from: this.from, ref: this.ref };
|
|
102617
102522
|
}
|
|
102618
|
-
analysisPlaceholder() {
|
|
102619
|
-
return;
|
|
102620
|
-
}
|
|
102621
102523
|
extractDependencies(taskName) {
|
|
102622
102524
|
return [{ from: this.from.config.name, to: taskName, type: "unpack" }];
|
|
102623
102525
|
}
|
|
102624
|
-
extractSecrets() {
|
|
102625
|
-
return [];
|
|
102626
|
-
}
|
|
102627
102526
|
extractRefs() {
|
|
102628
102527
|
return [{ type: "bundle", ref: this.ref }];
|
|
102629
102528
|
}
|
|
@@ -102643,7 +102542,7 @@ class UnpackOperation {
|
|
|
102643
102542
|
var pack = (ref) => new PackOperation(ref);
|
|
102644
102543
|
var unpack = (from, ref) => new UnpackOperation(from, ref);
|
|
102645
102544
|
|
|
102646
|
-
// ../
|
|
102545
|
+
// ../core/dist/ops/output.js
|
|
102647
102546
|
var out2 = {
|
|
102648
102547
|
...out,
|
|
102649
102548
|
bundle: (name) => createBundleRef(name)
|
|
@@ -102717,11 +102616,12 @@ class UseOperation {
|
|
|
102717
102616
|
return context.isPrimary ? this.ref.parse("") : undefined;
|
|
102718
102617
|
}
|
|
102719
102618
|
}
|
|
102720
|
-
// ../
|
|
102721
|
-
class SummaryOperation {
|
|
102619
|
+
// ../core/dist/ops/summary.js
|
|
102620
|
+
class SummaryOperation extends OperationBase {
|
|
102722
102621
|
format;
|
|
102723
102622
|
content;
|
|
102724
102623
|
constructor(format, content) {
|
|
102624
|
+
super();
|
|
102725
102625
|
this.format = format;
|
|
102726
102626
|
this.content = content;
|
|
102727
102627
|
}
|
|
@@ -102731,34 +102631,20 @@ class SummaryOperation {
|
|
|
102731
102631
|
toOp() {
|
|
102732
102632
|
return { kind: "summary", format: this.format, content: this.content };
|
|
102733
102633
|
}
|
|
102734
|
-
analysisPlaceholder() {
|
|
102735
|
-
return;
|
|
102736
|
-
}
|
|
102737
|
-
extractDependencies(_taskName) {
|
|
102738
|
-
return [];
|
|
102739
|
-
}
|
|
102740
|
-
extractSecrets() {
|
|
102741
|
-
return [];
|
|
102742
|
-
}
|
|
102743
|
-
extractRefs() {
|
|
102744
|
-
return [];
|
|
102745
|
-
}
|
|
102746
102634
|
cacheNormalize(_context) {
|
|
102747
102635
|
return { kind: this.kind, format: this.format, content: this.content };
|
|
102748
102636
|
}
|
|
102749
|
-
cachePlaceholder(context) {
|
|
102750
|
-
return context.value;
|
|
102751
|
-
}
|
|
102752
102637
|
}
|
|
102753
102638
|
var summary2 = {
|
|
102754
102639
|
md: (content) => new SummaryOperation("md", content)
|
|
102755
102640
|
};
|
|
102756
|
-
// ../
|
|
102757
|
-
class AnnotateOperation {
|
|
102641
|
+
// ../core/dist/ops/annotate.js
|
|
102642
|
+
class AnnotateOperation extends OperationBase {
|
|
102758
102643
|
level;
|
|
102759
102644
|
message;
|
|
102760
102645
|
location;
|
|
102761
102646
|
constructor(level, message, location) {
|
|
102647
|
+
super();
|
|
102762
102648
|
this.level = level;
|
|
102763
102649
|
this.message = message;
|
|
102764
102650
|
if (location)
|
|
@@ -102775,24 +102661,9 @@ class AnnotateOperation {
|
|
|
102775
102661
|
...this.location ? { location: this.location } : {}
|
|
102776
102662
|
};
|
|
102777
102663
|
}
|
|
102778
|
-
analysisPlaceholder() {
|
|
102779
|
-
return;
|
|
102780
|
-
}
|
|
102781
|
-
extractDependencies(_taskName) {
|
|
102782
|
-
return [];
|
|
102783
|
-
}
|
|
102784
|
-
extractSecrets() {
|
|
102785
|
-
return [];
|
|
102786
|
-
}
|
|
102787
|
-
extractRefs() {
|
|
102788
|
-
return [];
|
|
102789
|
-
}
|
|
102790
102664
|
cacheNormalize(_context) {
|
|
102791
102665
|
return { kind: this.kind, level: this.level, message: this.message };
|
|
102792
102666
|
}
|
|
102793
|
-
cachePlaceholder(context) {
|
|
102794
|
-
return context.value;
|
|
102795
|
-
}
|
|
102796
102667
|
}
|
|
102797
102668
|
var createAnnotation = (level) => (message, location) => new AnnotateOperation(level, message, location);
|
|
102798
102669
|
var annotate = {
|
|
@@ -102800,11 +102671,12 @@ var annotate = {
|
|
|
102800
102671
|
warning: createAnnotation("warning"),
|
|
102801
102672
|
info: createAnnotation("info")
|
|
102802
102673
|
};
|
|
102803
|
-
// ../
|
|
102804
|
-
class ReportOperation {
|
|
102674
|
+
// ../core/dist/ops/report.js
|
|
102675
|
+
class ReportOperation extends OperationBase {
|
|
102805
102676
|
reportType;
|
|
102806
102677
|
path;
|
|
102807
102678
|
constructor(reportType, path) {
|
|
102679
|
+
super();
|
|
102808
102680
|
this.reportType = reportType;
|
|
102809
102681
|
this.path = path;
|
|
102810
102682
|
}
|
|
@@ -102814,34 +102686,20 @@ class ReportOperation {
|
|
|
102814
102686
|
toOp() {
|
|
102815
102687
|
return { kind: "report", reportType: this.reportType, path: this.path };
|
|
102816
102688
|
}
|
|
102817
|
-
analysisPlaceholder() {
|
|
102818
|
-
return;
|
|
102819
|
-
}
|
|
102820
|
-
extractDependencies(_taskName) {
|
|
102821
|
-
return [];
|
|
102822
|
-
}
|
|
102823
|
-
extractSecrets() {
|
|
102824
|
-
return [];
|
|
102825
|
-
}
|
|
102826
|
-
extractRefs() {
|
|
102827
|
-
return [];
|
|
102828
|
-
}
|
|
102829
102689
|
cacheNormalize(_context) {
|
|
102830
102690
|
return { kind: this.kind, reportType: this.reportType, path: this.path };
|
|
102831
102691
|
}
|
|
102832
|
-
cachePlaceholder(context) {
|
|
102833
|
-
return context.value;
|
|
102834
|
-
}
|
|
102835
102692
|
}
|
|
102836
102693
|
var report = {
|
|
102837
102694
|
junit: (path) => new ReportOperation("junit", path),
|
|
102838
102695
|
coverage: (path) => new ReportOperation("coverage", path)
|
|
102839
102696
|
};
|
|
102840
|
-
// ../
|
|
102841
|
-
class BindServiceOperation {
|
|
102697
|
+
// ../core/dist/ops/bind.js
|
|
102698
|
+
class BindServiceOperation extends OperationBase {
|
|
102842
102699
|
service;
|
|
102843
102700
|
alias;
|
|
102844
102701
|
constructor(service2, alias) {
|
|
102702
|
+
super();
|
|
102845
102703
|
this.service = service2;
|
|
102846
102704
|
if (alias)
|
|
102847
102705
|
this.alias = alias;
|
|
@@ -102855,30 +102713,15 @@ class BindServiceOperation {
|
|
|
102855
102713
|
op.alias = this.alias;
|
|
102856
102714
|
return op;
|
|
102857
102715
|
}
|
|
102858
|
-
analysisPlaceholder() {
|
|
102859
|
-
return;
|
|
102860
|
-
}
|
|
102861
|
-
extractDependencies(_taskName) {
|
|
102862
|
-
return [];
|
|
102863
|
-
}
|
|
102864
|
-
extractSecrets() {
|
|
102865
|
-
return [];
|
|
102866
|
-
}
|
|
102867
|
-
extractRefs() {
|
|
102868
|
-
return [];
|
|
102869
|
-
}
|
|
102870
102716
|
cacheNormalize(_context) {
|
|
102871
102717
|
return { kind: this.kind, service: this.service, alias: this.alias ?? null };
|
|
102872
102718
|
}
|
|
102873
|
-
cachePlaceholder(context) {
|
|
102874
|
-
return context.value;
|
|
102875
|
-
}
|
|
102876
102719
|
}
|
|
102877
102720
|
var bind = (serviceInstance, alias) => new BindServiceOperation(serviceInstance, alias);
|
|
102878
|
-
// ../
|
|
102721
|
+
// ../core/dist/engine/cache/coordinator.js
|
|
102879
102722
|
import { join as join4 } from "node:path";
|
|
102880
102723
|
|
|
102881
|
-
// ../
|
|
102724
|
+
// ../core/dist/engine/executor/file-system.js
|
|
102882
102725
|
var import_picomatch = __toESM(require_picomatch2(), 1);
|
|
102883
102726
|
import { mkdir, readFile as readFile3, readdir, stat, writeFile } from "node:fs/promises";
|
|
102884
102727
|
import { dirname, join, relative } from "node:path";
|
|
@@ -102926,7 +102769,7 @@ var writeFiles = async (basePath, files) => {
|
|
|
102926
102769
|
}));
|
|
102927
102770
|
};
|
|
102928
102771
|
|
|
102929
|
-
// ../
|
|
102772
|
+
// ../core/dist/engine/cache/serialize.js
|
|
102930
102773
|
var isPlainObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
102931
102774
|
var stableStringify = (value) => {
|
|
102932
102775
|
if (value === null || value === undefined)
|
|
@@ -102946,7 +102789,7 @@ var stableStringify = (value) => {
|
|
|
102946
102789
|
return JSON.stringify(String(value));
|
|
102947
102790
|
};
|
|
102948
102791
|
|
|
102949
|
-
// ../
|
|
102792
|
+
// ../core/dist/engine/cache/analyze.js
|
|
102950
102793
|
var createPlaceholderTracker = () => {
|
|
102951
102794
|
let touched = false;
|
|
102952
102795
|
const placeholder = new Proxy(() => {
|
|
@@ -103048,7 +102891,7 @@ var analyzeTaskSteps = (task2, workspace) => {
|
|
|
103048
102891
|
return primary.analysis;
|
|
103049
102892
|
};
|
|
103050
102893
|
|
|
103051
|
-
// ../
|
|
102894
|
+
// ../core/dist/engine/cache/hasher.js
|
|
103052
102895
|
import { createHash as createHash2 } from "node:crypto";
|
|
103053
102896
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
103054
102897
|
import { join as join2, relative as relative2 } from "node:path";
|
|
@@ -103097,7 +102940,7 @@ var hashNamedValues = (values) => {
|
|
|
103097
102940
|
return toHex(overall);
|
|
103098
102941
|
};
|
|
103099
102942
|
|
|
103100
|
-
// ../
|
|
102943
|
+
// ../core/dist/engine/cache/inference.js
|
|
103101
102944
|
var trimCommand = (command) => command.replace(/\s+/g, " ").trim();
|
|
103102
102945
|
var inferInputsFromCommand = (command) => {
|
|
103103
102946
|
const normalized = trimCommand(command.toLowerCase());
|
|
@@ -103141,7 +102984,7 @@ var inferOutputsFromCommand = (command) => {
|
|
|
103141
102984
|
return [];
|
|
103142
102985
|
};
|
|
103143
102986
|
|
|
103144
|
-
// ../
|
|
102987
|
+
// ../core/dist/engine/cache/store.js
|
|
103145
102988
|
import { existsSync } from "node:fs";
|
|
103146
102989
|
import { mkdir as mkdir2, readFile as readFile5, readdir as readdir2, rm, stat as stat2, writeFile as writeFile2 } from "node:fs/promises";
|
|
103147
102990
|
import { join as join3 } from "node:path";
|
|
@@ -103347,7 +103190,7 @@ class CacheStore {
|
|
|
103347
103190
|
}
|
|
103348
103191
|
}
|
|
103349
103192
|
|
|
103350
|
-
// ../
|
|
103193
|
+
// ../core/dist/engine/cache/coordinator.js
|
|
103351
103194
|
class CacheCoordinator {
|
|
103352
103195
|
workspace;
|
|
103353
103196
|
settings;
|
|
@@ -104086,7 +103929,7 @@ class CacheCoordinator {
|
|
|
104086
103929
|
}
|
|
104087
103930
|
}
|
|
104088
103931
|
|
|
104089
|
-
// ../
|
|
103932
|
+
// ../core/dist/engine/handlers/annotate-handler.js
|
|
104090
103933
|
class AnnotateHandler {
|
|
104091
103934
|
kind = "annotate";
|
|
104092
103935
|
async execute(op, context, _state) {
|
|
@@ -104095,7 +103938,7 @@ class AnnotateHandler {
|
|
|
104095
103938
|
}
|
|
104096
103939
|
}
|
|
104097
103940
|
|
|
104098
|
-
// ../
|
|
103941
|
+
// ../core/dist/engine/handlers/artifact-download-handler.js
|
|
104099
103942
|
import { existsSync as existsSync2 } from "node:fs";
|
|
104100
103943
|
import { mkdir as mkdir3, readFile as readFile6 } from "node:fs/promises";
|
|
104101
103944
|
import { join as join5, relative as relative3 } from "node:path";
|
|
@@ -104131,7 +103974,7 @@ class ArtifactDownloadHandler {
|
|
|
104131
103974
|
}
|
|
104132
103975
|
}
|
|
104133
103976
|
|
|
104134
|
-
// ../
|
|
103977
|
+
// ../core/dist/engine/handlers/artifact-upload-handler.js
|
|
104135
103978
|
import { join as join6 } from "node:path";
|
|
104136
103979
|
class ArtifactUploadHandler {
|
|
104137
103980
|
kind = "artifact-upload";
|
|
@@ -104156,7 +103999,7 @@ class ArtifactUploadHandler {
|
|
|
104156
103999
|
}
|
|
104157
104000
|
}
|
|
104158
104001
|
|
|
104159
|
-
// ../
|
|
104002
|
+
// ../core/dist/engine/handlers/bind-service-handler.js
|
|
104160
104003
|
class BindServiceHandler {
|
|
104161
104004
|
kind = "bind-service";
|
|
104162
104005
|
async execute(op, context, _state) {
|
|
@@ -104165,7 +104008,7 @@ class BindServiceHandler {
|
|
|
104165
104008
|
}
|
|
104166
104009
|
}
|
|
104167
104010
|
|
|
104168
|
-
// ../
|
|
104011
|
+
// ../core/dist/engine/handlers/cache-mount-handler.js
|
|
104169
104012
|
import { existsSync as existsSync3 } from "node:fs";
|
|
104170
104013
|
import { mkdir as mkdir4 } from "node:fs/promises";
|
|
104171
104014
|
import { join as join7 } from "node:path";
|
|
@@ -104183,7 +104026,7 @@ class CacheMountHandler {
|
|
|
104183
104026
|
}
|
|
104184
104027
|
}
|
|
104185
104028
|
|
|
104186
|
-
// ../
|
|
104029
|
+
// ../core/dist/engine/handlers/command-handler.js
|
|
104187
104030
|
class CommandHandler {
|
|
104188
104031
|
runner;
|
|
104189
104032
|
kind = "command";
|
|
@@ -104195,7 +104038,7 @@ class CommandHandler {
|
|
|
104195
104038
|
}
|
|
104196
104039
|
}
|
|
104197
104040
|
|
|
104198
|
-
// ../
|
|
104041
|
+
// ../core/dist/engine/handlers/emit-handler.js
|
|
104199
104042
|
class EmitHandler {
|
|
104200
104043
|
kind = "emit";
|
|
104201
104044
|
async execute(op, _context, state) {
|
|
@@ -104204,7 +104047,7 @@ class EmitHandler {
|
|
|
104204
104047
|
}
|
|
104205
104048
|
}
|
|
104206
104049
|
|
|
104207
|
-
// ../
|
|
104050
|
+
// ../core/dist/engine/handlers/env-handler.js
|
|
104208
104051
|
class EnvHandler {
|
|
104209
104052
|
kind = "env";
|
|
104210
104053
|
async execute(op, context, _state) {
|
|
@@ -104214,7 +104057,7 @@ class EnvHandler {
|
|
|
104214
104057
|
}
|
|
104215
104058
|
}
|
|
104216
104059
|
|
|
104217
|
-
// ../
|
|
104060
|
+
// ../core/dist/engine/handlers/http-handler.js
|
|
104218
104061
|
import { readFile as readFile7 } from "node:fs/promises";
|
|
104219
104062
|
import { isAbsolute, resolve } from "node:path";
|
|
104220
104063
|
class HttpHandler {
|
|
@@ -104281,7 +104124,7 @@ class HttpHandler {
|
|
|
104281
104124
|
}
|
|
104282
104125
|
}
|
|
104283
104126
|
|
|
104284
|
-
// ../
|
|
104127
|
+
// ../core/dist/engine/handlers/pack-handler.js
|
|
104285
104128
|
class PackHandler {
|
|
104286
104129
|
kind = "pack";
|
|
104287
104130
|
async execute(op, context, state) {
|
|
@@ -104294,7 +104137,7 @@ class PackHandler {
|
|
|
104294
104137
|
}
|
|
104295
104138
|
}
|
|
104296
104139
|
|
|
104297
|
-
// ../
|
|
104140
|
+
// ../core/dist/engine/handlers/registry.js
|
|
104298
104141
|
class OpHandlerRegistry {
|
|
104299
104142
|
handlers = new Map;
|
|
104300
104143
|
register(handler) {
|
|
@@ -104309,7 +104152,7 @@ class OpHandlerRegistry {
|
|
|
104309
104152
|
}
|
|
104310
104153
|
}
|
|
104311
104154
|
|
|
104312
|
-
// ../
|
|
104155
|
+
// ../core/dist/engine/handlers/report-handler.js
|
|
104313
104156
|
class ReportHandler {
|
|
104314
104157
|
kind = "report";
|
|
104315
104158
|
async execute(op, context, _state) {
|
|
@@ -104323,7 +104166,7 @@ class ReportHandler {
|
|
|
104323
104166
|
}
|
|
104324
104167
|
}
|
|
104325
104168
|
|
|
104326
|
-
// ../
|
|
104169
|
+
// ../core/dist/engine/handlers/summary-handler.js
|
|
104327
104170
|
class SummaryHandler {
|
|
104328
104171
|
kind = "summary";
|
|
104329
104172
|
async execute(op, _context, state) {
|
|
@@ -104332,7 +104175,7 @@ class SummaryHandler {
|
|
|
104332
104175
|
}
|
|
104333
104176
|
}
|
|
104334
104177
|
|
|
104335
|
-
// ../
|
|
104178
|
+
// ../core/dist/engine/handlers/unpack-handler.js
|
|
104336
104179
|
class UnpackHandler {
|
|
104337
104180
|
executeTask;
|
|
104338
104181
|
states;
|
|
@@ -104355,7 +104198,7 @@ class UnpackHandler {
|
|
|
104355
104198
|
}
|
|
104356
104199
|
}
|
|
104357
104200
|
|
|
104358
|
-
// ../
|
|
104201
|
+
// ../core/dist/engine/handlers/use-handler.js
|
|
104359
104202
|
class UseHandler {
|
|
104360
104203
|
executeTask;
|
|
104361
104204
|
states;
|
|
@@ -104377,7 +104220,7 @@ class UseHandler {
|
|
|
104377
104220
|
}
|
|
104378
104221
|
}
|
|
104379
104222
|
|
|
104380
|
-
// ../
|
|
104223
|
+
// ../core/dist/engine/executor/command-runner.js
|
|
104381
104224
|
import { spawn } from "node:child_process";
|
|
104382
104225
|
class CommandRunner {
|
|
104383
104226
|
workspace;
|
|
@@ -104511,7 +104354,7 @@ class CommandRunner {
|
|
|
104511
104354
|
}
|
|
104512
104355
|
}
|
|
104513
104356
|
|
|
104514
|
-
// ../
|
|
104357
|
+
// ../core/dist/engine/executor/value-resolver.js
|
|
104515
104358
|
class ValueResolver {
|
|
104516
104359
|
states;
|
|
104517
104360
|
params;
|
|
@@ -104574,7 +104417,7 @@ class ValueResolver {
|
|
|
104574
104417
|
}
|
|
104575
104418
|
}
|
|
104576
104419
|
|
|
104577
|
-
// ../
|
|
104420
|
+
// ../core/dist/engine/executor/plan-runner.js
|
|
104578
104421
|
var mergeEnv = (...sources) => {
|
|
104579
104422
|
const merged = {};
|
|
104580
104423
|
for (const source of sources) {
|
|
@@ -104972,7 +104815,7 @@ class PlanRunner {
|
|
|
104972
104815
|
}
|
|
104973
104816
|
}
|
|
104974
104817
|
|
|
104975
|
-
// ../
|
|
104818
|
+
// ../core/dist/engine/executor/executor.js
|
|
104976
104819
|
var defaultLogger = {
|
|
104977
104820
|
info: (message) => console.log(message),
|
|
104978
104821
|
error: (message) => console.error(message),
|
|
@@ -105190,15 +105033,15 @@ Available plans: ${available}`);
|
|
|
105190
105033
|
async function run() {
|
|
105191
105034
|
const startTime = Date.now();
|
|
105192
105035
|
try {
|
|
105193
|
-
const plan2 =
|
|
105194
|
-
const file =
|
|
105195
|
-
const task2 =
|
|
105196
|
-
const timeout =
|
|
105197
|
-
const failFast =
|
|
105198
|
-
const workdirInput =
|
|
105036
|
+
const plan2 = core7.getInput("plan", { required: true });
|
|
105037
|
+
const file = core7.getInput("file") || ".kitsi/pipeline.ts";
|
|
105038
|
+
const task2 = core7.getInput("task") || undefined;
|
|
105039
|
+
const timeout = core7.getInput("timeout") || "30m";
|
|
105040
|
+
const failFast = core7.getBooleanInput("fail-fast");
|
|
105041
|
+
const workdirInput = core7.getInput("working-directory");
|
|
105199
105042
|
const defaultWorkdir = process.env.GITHUB_WORKSPACE || ".";
|
|
105200
105043
|
const workdir = !workdirInput || workdirInput === "." ? defaultWorkdir : workdirInput;
|
|
105201
|
-
|
|
105044
|
+
core7.info(`Running Kitsi plan: ${plan2}`);
|
|
105202
105045
|
const capabilities = new GitHubCapabilities;
|
|
105203
105046
|
const groups = new GroupManager;
|
|
105204
105047
|
const result = await runPipeline({
|
|
@@ -105217,16 +105060,16 @@ async function run() {
|
|
|
105217
105060
|
});
|
|
105218
105061
|
const duration = (Date.now() - startTime) / 1000;
|
|
105219
105062
|
const status = Object.values(result.tasks).some((t) => t.status === "failed") ? "failed" : "success";
|
|
105220
|
-
|
|
105221
|
-
|
|
105222
|
-
|
|
105063
|
+
core7.setOutput("status", status);
|
|
105064
|
+
core7.setOutput("duration", duration.toFixed(1));
|
|
105065
|
+
core7.setOutput("tasks", JSON.stringify(result.tasks));
|
|
105223
105066
|
await capabilities.summary.writePlanSummary(plan2, result, duration);
|
|
105224
105067
|
if (status === "failed") {
|
|
105225
105068
|
for (const [name, taskResult] of Object.entries(result.tasks)) {
|
|
105226
105069
|
if (taskResult.status !== "failed")
|
|
105227
105070
|
continue;
|
|
105228
105071
|
if (taskResult.error) {
|
|
105229
|
-
|
|
105072
|
+
core7.error(`Task "${name}" failed: ${taskResult.error.message}`);
|
|
105230
105073
|
const cause = taskResult.error.cause;
|
|
105231
105074
|
if (cause) {
|
|
105232
105075
|
const formatted = typeof cause === "string" ? cause : cause instanceof Error ? cause.message : (() => {
|
|
@@ -105239,23 +105082,23 @@ async function run() {
|
|
|
105239
105082
|
for (const line of formatted.split(`
|
|
105240
105083
|
`)) {
|
|
105241
105084
|
if (line.trim().length > 0) {
|
|
105242
|
-
|
|
105085
|
+
core7.error(line);
|
|
105243
105086
|
}
|
|
105244
105087
|
}
|
|
105245
105088
|
}
|
|
105246
105089
|
} else {
|
|
105247
|
-
|
|
105090
|
+
core7.error(`Task "${name}" failed`);
|
|
105248
105091
|
}
|
|
105249
105092
|
}
|
|
105250
105093
|
}
|
|
105251
105094
|
if (status === "success") {
|
|
105252
|
-
|
|
105095
|
+
core7.info(`Plan "${plan2}" completed successfully in ${duration.toFixed(1)}s`);
|
|
105253
105096
|
} else {
|
|
105254
|
-
|
|
105097
|
+
core7.setFailed(`Plan "${plan2}" failed`);
|
|
105255
105098
|
}
|
|
105256
105099
|
} catch (error3) {
|
|
105257
105100
|
const message = error3 instanceof Error ? error3.message : String(error3);
|
|
105258
|
-
|
|
105101
|
+
core7.setFailed(message);
|
|
105259
105102
|
}
|
|
105260
105103
|
}
|
|
105261
105104
|
run();
|