@cloud-cli/on 1.5.6 ā 1.6.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/dist/drivers/standard-process.driver.d.ts +1 -1
- package/dist/drivers/standard-process.driver.d.ts.map +1 -1
- package/dist/drivers/systemd.driver.d.ts +1 -1
- package/dist/drivers/systemd.driver.d.ts.map +1 -1
- package/dist/on.js +160 -110
- package/dist/server.d.ts.map +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/worker.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { ExecutionDriver, StepContext, StepExecutionHandle } from '../types.js';
|
|
|
2
2
|
export declare class StandardProcessDriver implements ExecutionDriver {
|
|
3
3
|
name: string;
|
|
4
4
|
isSupported(): Promise<boolean>;
|
|
5
|
-
execute(ctx: StepContext):
|
|
5
|
+
execute(ctx: StepContext): StepExecutionHandle;
|
|
6
6
|
/**
|
|
7
7
|
* Kills the entire process group tree (-PID) with unref escalation
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standard-process.driver.d.ts","sourceRoot":"","sources":["../../src/drivers/standard-process.driver.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,mBAAmB,EAAc,MAAM,aAAa,CAAC;AAE5F,qBAAa,qBAAsB,YAAW,eAAe;IAC3D,IAAI,SAAsB;IAEpB,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"standard-process.driver.d.ts","sourceRoot":"","sources":["../../src/drivers/standard-process.driver.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,mBAAmB,EAAc,MAAM,aAAa,CAAC;AAE5F,qBAAa,qBAAsB,YAAW,eAAe;IAC3D,IAAI,SAAsB;IAEpB,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAIrC,OAAO,CAAC,GAAG,EAAE,WAAW,GAAG,mBAAmB;IAoI9C;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAuBlB,OAAO,CAAC,IAAI,EAAE,MAAM;CAG3B"}
|
|
@@ -2,7 +2,7 @@ import { ExecutionDriver, StepContext, StepExecutionHandle } from '../types.js';
|
|
|
2
2
|
export declare class SystemdDriver implements ExecutionDriver {
|
|
3
3
|
name: string;
|
|
4
4
|
isSupported(): Promise<boolean>;
|
|
5
|
-
execute(ctx: StepContext):
|
|
5
|
+
execute(ctx: StepContext): StepExecutionHandle;
|
|
6
6
|
readLog(file: string): Promise<string>;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=systemd.driver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"systemd.driver.d.ts","sourceRoot":"","sources":["../../src/drivers/systemd.driver.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,mBAAmB,EAAc,MAAM,aAAa,CAAC;AAI5F,qBAAa,aAAc,YAAW,eAAe;IACnD,IAAI,SAAa;IAEX,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"systemd.driver.d.ts","sourceRoot":"","sources":["../../src/drivers/systemd.driver.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,mBAAmB,EAAc,MAAM,aAAa,CAAC;AAI5F,qBAAa,aAAc,YAAW,eAAe;IACnD,IAAI,SAAa;IAEX,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAQrC,OAAO,CAAC,GAAG,EAAE,WAAW,GAAG,mBAAmB;IAsJxC,OAAO,CAAC,IAAI,EAAE,MAAM;CAS3B"}
|
package/dist/on.js
CHANGED
|
@@ -3420,11 +3420,11 @@ var pn = {
|
|
|
3420
3420
|
author: n.pusher?.name || n.sender?.login,
|
|
3421
3421
|
action: n.action,
|
|
3422
3422
|
raw: n,
|
|
3423
|
-
changes: n.
|
|
3424
|
-
...
|
|
3425
|
-
...
|
|
3426
|
-
...
|
|
3427
|
-
] : []
|
|
3423
|
+
changes: n.commits ? Array.from(new Set(n.commits.flatMap((e) => [
|
|
3424
|
+
...e.added,
|
|
3425
|
+
...e.removed,
|
|
3426
|
+
...e.modified
|
|
3427
|
+
]))) : []
|
|
3428
3428
|
};
|
|
3429
3429
|
}
|
|
3430
3430
|
return {
|
|
@@ -3811,7 +3811,7 @@ var bn, xn, Sn, Cn = class {
|
|
|
3811
3811
|
e.writeFileSync(r, n, "utf-8"), console.log(`š HTML Execution Report generated: ${r}`);
|
|
3812
3812
|
}
|
|
3813
3813
|
generateHtml(e) {
|
|
3814
|
-
let t = e.status === "success" ? "bg-emerald-500/10 text-emerald-400 border-emerald-500/20" : e.status === "failed" ? "bg-rose-500/10 text-rose-400 border-rose-500/20" : "bg-amber-500/10 text-amber-400 border-amber-500/20", n = e.steps.map((e, t) => {
|
|
3814
|
+
let t = e.status === "success" ? "bg-emerald-500/10 text-emerald-400 border-emerald-500/20" : e.status === "failed" ? "bg-rose-500/10 text-rose-400 border-rose-500/20" : "bg-amber-500/10 text-amber-400 border-amber-500/20", n = (e.steps ?? []).map((e, t) => {
|
|
3815
3815
|
let n = e.logContent, r = n ? this.ansiUp.ansi_to_html(n) : "<span class=\"text-gray-500\">(No terminal log output recorded for this step)</span>", i = e.status === "success" ? "text-emerald-400 bg-emerald-500/10" : e.status === "failed" ? "text-rose-400 bg-rose-500/10" : "text-gray-400 bg-gray-500/10";
|
|
3816
3816
|
return `<details class="border border-b-0 border-gray-800 bg-gray-900/50 text-sm">
|
|
3817
3817
|
<summary class="flex items-center justify-between p-2 bg-gray-800/40 border-b border-gray-800 cursor-pointer">
|
|
@@ -8326,7 +8326,7 @@ var To = class e {
|
|
|
8326
8326
|
if (n.on.provider !== e) continue;
|
|
8327
8327
|
if (n.on.if) try {
|
|
8328
8328
|
if (!mn.evaluateConditions(n.on.if, { inputs: t })) {
|
|
8329
|
-
console.log(`ā© Skipped ${n.id} based on
|
|
8329
|
+
console.log(`ā© Skipped ${n.id} based on conditions: ${n.on.if}`, { inputs: t });
|
|
8330
8330
|
continue;
|
|
8331
8331
|
}
|
|
8332
8332
|
} catch (e) {
|
|
@@ -8349,14 +8349,19 @@ var To = class e {
|
|
|
8349
8349
|
this.secrets.reload(), console.log("š SecretStore reloaded successfully without downtime!"), t.writeHead(200, { "Content-Type": "application/json" }), t.end(JSON.stringify({ message: "Secrets reloaded successfully" }));
|
|
8350
8350
|
}
|
|
8351
8351
|
async renderDashboard(e) {
|
|
8352
|
-
let t =
|
|
8353
|
-
|
|
8352
|
+
let t = await this.queue.listJobs(500), n = {
|
|
8353
|
+
success: "bg-emerald-500/10 text-emerald-400",
|
|
8354
|
+
failed: "bg-rose-500/10 text-rose-400",
|
|
8355
|
+
running: "bg-indigo-500/10 text-indigo-400 animate-pulse",
|
|
8356
|
+
_: "bg-gray-500/10 text-gray-400"
|
|
8357
|
+
}, r = t.map((e) => {
|
|
8358
|
+
let t = n[e.status] || n._;
|
|
8354
8359
|
return `
|
|
8355
8360
|
<tr class="border-b border-gray-800 hover:bg-gray-900/50 transition">
|
|
8356
8361
|
<td class="py-3 px-4 font-mono text-indigo-400"><a href="/runs/${e.id}" class="hover:underline">#${e.id}</a></td>
|
|
8357
8362
|
<td class="py-3 px-4 font-medium text-white">${e.workflow_id}</td>
|
|
8358
8363
|
<td class="py-3 px-4">
|
|
8359
|
-
<span class="px-2.5 py-0.5 rounded-full text-xs font-semibold ${t}">${e.status
|
|
8364
|
+
<span class="px-2.5 py-0.5 rounded-full text-xs font-semibold ${t}">${e.status?.toUpperCase() ?? "?"}</span>
|
|
8360
8365
|
</td>
|
|
8361
8366
|
<td class="py-3 px-4 text-xs font-mono text-gray-400">${e.worker_id || "-"}</td>
|
|
8362
8367
|
<td class="py-3 px-4 text-xs text-gray-400">${e.created_at}</td>
|
|
@@ -8365,7 +8370,7 @@ var To = class e {
|
|
|
8365
8370
|
</td>
|
|
8366
8371
|
</tr>
|
|
8367
8372
|
`;
|
|
8368
|
-
}).join(""),
|
|
8373
|
+
}).join(""), i = `<!DOCTYPE html>
|
|
8369
8374
|
<html lang="en" class="dark">
|
|
8370
8375
|
<head>
|
|
8371
8376
|
<meta charset="UTF-8">
|
|
@@ -8397,13 +8402,13 @@ var To = class e {
|
|
|
8397
8402
|
<th class="py-3 px-4 text-right">Action</th>
|
|
8398
8403
|
</tr>
|
|
8399
8404
|
</thead>
|
|
8400
|
-
<tbody>${
|
|
8405
|
+
<tbody>${r.length ? r : "<tr><td colspan=\"6\" class=\"p-6 text-center text-gray-500\">No jobs recorded yet.</td></tr>"}</tbody>
|
|
8401
8406
|
</table>
|
|
8402
8407
|
</div>
|
|
8403
8408
|
</div>
|
|
8404
8409
|
</body>
|
|
8405
|
-
</html>`,
|
|
8406
|
-
e.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), e.end(
|
|
8410
|
+
</html>`, a = this.secrets.redactText(i);
|
|
8411
|
+
e.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), e.end(a);
|
|
8407
8412
|
}
|
|
8408
8413
|
async renderRunDetails(e, t) {
|
|
8409
8414
|
let n = await this.queue.getJob(e);
|
|
@@ -8551,7 +8556,7 @@ var Io = class {
|
|
|
8551
8556
|
return !1;
|
|
8552
8557
|
}
|
|
8553
8558
|
}
|
|
8554
|
-
|
|
8559
|
+
execute(t) {
|
|
8555
8560
|
let n = null, r = Date.now(), i = d.join(t.workspacePath, ".logs"), a = d.join(i, `step-${t.stepId}.log`), o = d.join(t.workspacePath, "wd");
|
|
8556
8561
|
try {
|
|
8557
8562
|
e.mkdirSync(i, { recursive: !0 }), e.mkdirSync(o, { recursive: !0 }), e.chmodSync(o, 511), n = e.openSync(a, "a");
|
|
@@ -8674,7 +8679,7 @@ var Io = class {
|
|
|
8674
8679
|
async isSupported() {
|
|
8675
8680
|
return !0;
|
|
8676
8681
|
}
|
|
8677
|
-
|
|
8682
|
+
execute(t) {
|
|
8678
8683
|
let n = null, r = Date.now(), i = d.join(t.workspacePath, ".logs"), a = d.join(i, `step-${t.stepId}.log`), o = d.join(t.workspacePath, "wd");
|
|
8679
8684
|
try {
|
|
8680
8685
|
e.mkdirSync(i, { recursive: !0 }), e.mkdirSync(o, { recursive: !0 }), e.chmodSync(o, 511), n = e.openSync(a, "a");
|
|
@@ -8824,63 +8829,90 @@ async function Go(e, t, n, r) {
|
|
|
8824
8829
|
await new Promise((e) => setTimeout(e, 2e3));
|
|
8825
8830
|
continue;
|
|
8826
8831
|
}
|
|
8827
|
-
await Ko(
|
|
8832
|
+
await Ko({
|
|
8833
|
+
workerId: e,
|
|
8834
|
+
job: a,
|
|
8835
|
+
queue: t,
|
|
8836
|
+
secrets: n,
|
|
8837
|
+
config: r,
|
|
8838
|
+
driver: i
|
|
8839
|
+
});
|
|
8828
8840
|
} catch (t) {
|
|
8829
8841
|
console.error(`[${e}] ā ļø Worker execution loop error:`, t), await new Promise((e) => setTimeout(e, 5e3));
|
|
8830
8842
|
}
|
|
8831
8843
|
console.log(`[${e}] š Worker loop stopped cleanly.`);
|
|
8832
8844
|
}
|
|
8833
|
-
async function Ko(e
|
|
8834
|
-
|
|
8835
|
-
|
|
8845
|
+
async function Ko(e) {
|
|
8846
|
+
let { workerId: t, job: n, config: r, secrets: i, queue: a } = e;
|
|
8847
|
+
console.log(`\n[${t}] š¦ Claimed Job #${n.id} (Workflow: ${n.workflow_id})`);
|
|
8848
|
+
let o = typeof n.payload == "string" ? JSON.parse(n.payload) : n.payload, s = o.steps || [], c = o.inputs || {}, l = Date.now(), u = {
|
|
8836
8849
|
inputs: c,
|
|
8837
|
-
env: { ...
|
|
8838
|
-
secrets:
|
|
8850
|
+
env: { ...r.env },
|
|
8851
|
+
secrets: i.getAll(),
|
|
8839
8852
|
steps: {}
|
|
8840
|
-
}
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
|
|
8853
|
+
}, { cancelled: d, failed: f, stepReports: p } = await qo({
|
|
8854
|
+
payload: o,
|
|
8855
|
+
steps: s,
|
|
8856
|
+
executionContext: u,
|
|
8857
|
+
...e
|
|
8858
|
+
}), m = d ? "cancelled" : f ? "failed" : "success";
|
|
8859
|
+
await a.finishJob(n.id, m), console.log(`[${t}] ā
Job #${n.id} completed as: ${m}`);
|
|
8860
|
+
let h = $o(n, m, l, c, u.env, p, o);
|
|
8861
|
+
await a.saveReport(n.id, h), await es(t, r.reporters, h);
|
|
8862
|
+
}
|
|
8863
|
+
async function qo(e) {
|
|
8864
|
+
let { driver: t, workerId: n, queue: r, config: i, job: a, payload: o, steps: s, executionContext: c } = e, l = [], u = !1, d = !1;
|
|
8865
|
+
try {
|
|
8866
|
+
o.env && Object.assign(c.env, await Xo(o.env, c));
|
|
8867
|
+
for (let e = 0; e < s.length; e++) {
|
|
8868
|
+
let o = s[e], f = await Jo({
|
|
8869
|
+
workerId: n,
|
|
8870
|
+
jobId: a.id,
|
|
8871
|
+
step: o,
|
|
8872
|
+
stepIndex: e,
|
|
8873
|
+
executionContext: c,
|
|
8874
|
+
driver: t,
|
|
8875
|
+
queue: r,
|
|
8876
|
+
config: i
|
|
8877
|
+
});
|
|
8878
|
+
if (f.report && l.push(f.report), f.skipped) break;
|
|
8879
|
+
if (f.cancelled) {
|
|
8880
|
+
d = !0, u = !0;
|
|
8881
|
+
break;
|
|
8882
|
+
}
|
|
8883
|
+
if (f.failed) {
|
|
8884
|
+
u = !0;
|
|
8885
|
+
break;
|
|
8886
|
+
}
|
|
8862
8887
|
}
|
|
8888
|
+
} catch {
|
|
8889
|
+
u = !0;
|
|
8863
8890
|
}
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
8891
|
+
return l.length < s.length && Qo(s, l.length, l), {
|
|
8892
|
+
failed: u,
|
|
8893
|
+
cancelled: d,
|
|
8894
|
+
stepReports: l
|
|
8895
|
+
};
|
|
8869
8896
|
}
|
|
8870
|
-
async function
|
|
8871
|
-
let {
|
|
8872
|
-
return
|
|
8897
|
+
async function Jo(e) {
|
|
8898
|
+
let { step: t, stepIndex: n } = e, r = t.id || `step-${n}`, i = t.name || r;
|
|
8899
|
+
return t.if && !await mn.evaluateConditions(t.if, e.executionContext) ? {
|
|
8900
|
+
failed: !1,
|
|
8901
|
+
cancelled: !1,
|
|
8902
|
+
skipped: !0,
|
|
8903
|
+
report: null
|
|
8904
|
+
} : t.eval ? Yo({
|
|
8873
8905
|
...e,
|
|
8874
|
-
stepId:
|
|
8875
|
-
stepName:
|
|
8876
|
-
evalExpr:
|
|
8877
|
-
}) :
|
|
8906
|
+
stepId: r,
|
|
8907
|
+
stepName: i,
|
|
8908
|
+
evalExpr: t.eval
|
|
8909
|
+
}) : Zo({
|
|
8878
8910
|
...e,
|
|
8879
|
-
stepId:
|
|
8880
|
-
stepName:
|
|
8911
|
+
stepId: r,
|
|
8912
|
+
stepName: i
|
|
8881
8913
|
});
|
|
8882
8914
|
}
|
|
8883
|
-
async function
|
|
8915
|
+
async function Yo(e) {
|
|
8884
8916
|
let { queue: t, jobId: n, stepId: r, stepName: i, evalExpr: a, executionContext: o } = e, s = Date.now();
|
|
8885
8917
|
try {
|
|
8886
8918
|
let e = await mn.evaluateExpression(a, o);
|
|
@@ -8892,7 +8924,8 @@ async function Jo(e) {
|
|
|
8892
8924
|
let c = typeof e == "object" ? JSON.stringify(e, null, 2) : String(e ?? "OK");
|
|
8893
8925
|
return await t.saveStepLog(n, r, `[JS EVAL OUTPUT]:\n${c}`), console.log(`[${r}] ā
JS Eval step complete.`), {
|
|
8894
8926
|
failed: !1,
|
|
8895
|
-
|
|
8927
|
+
cancelled: !1,
|
|
8928
|
+
skipped: !1,
|
|
8896
8929
|
report: {
|
|
8897
8930
|
id: r,
|
|
8898
8931
|
name: i,
|
|
@@ -8910,7 +8943,8 @@ async function Jo(e) {
|
|
|
8910
8943
|
outputs: {}
|
|
8911
8944
|
}, await t.saveStepLog(n, r, `[JS EVAL ERROR]:\n${e.message}`), {
|
|
8912
8945
|
failed: !0,
|
|
8913
|
-
|
|
8946
|
+
cancelled: !1,
|
|
8947
|
+
skipped: !1,
|
|
8914
8948
|
report: {
|
|
8915
8949
|
id: r,
|
|
8916
8950
|
name: i,
|
|
@@ -8924,53 +8958,69 @@ async function Jo(e) {
|
|
|
8924
8958
|
};
|
|
8925
8959
|
}
|
|
8926
8960
|
}
|
|
8927
|
-
async function
|
|
8961
|
+
async function Xo(e, t) {
|
|
8928
8962
|
let n = {};
|
|
8929
8963
|
if (e) for (let [r, i] of Object.entries(e)) n[r] = String(await mn.evaluateValue(i, t));
|
|
8930
8964
|
return n;
|
|
8931
8965
|
}
|
|
8932
|
-
async function
|
|
8933
|
-
let { workerId: n, jobId: r, step: i, stepId: a, stepName: o, executionContext: s, driver: c, queue: l, config: u } = t, d
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8966
|
+
async function Zo(t) {
|
|
8967
|
+
let { workerId: n, jobId: r, step: i, stepId: a, stepName: o, executionContext: s, driver: c, queue: l, config: u } = t, d, f;
|
|
8968
|
+
try {
|
|
8969
|
+
let e = await Xo(i.env, s);
|
|
8970
|
+
d = {
|
|
8971
|
+
jobId: r.toString(),
|
|
8972
|
+
stepId: a,
|
|
8973
|
+
workspacePath: `${u.storagePath}/job-${r}`,
|
|
8974
|
+
command: i.run,
|
|
8975
|
+
image: i.image,
|
|
8976
|
+
env: {
|
|
8977
|
+
...s.env,
|
|
8978
|
+
...e
|
|
8979
|
+
},
|
|
8980
|
+
timeoutMs: i.timeoutMs
|
|
8981
|
+
}, f = c.execute(d);
|
|
8982
|
+
} catch (e) {
|
|
8983
|
+
f = {
|
|
8984
|
+
done: Promise.resolve({
|
|
8985
|
+
exitCode: 1,
|
|
8986
|
+
durationMs: 0,
|
|
8987
|
+
error: Error(String(e))
|
|
8988
|
+
}),
|
|
8989
|
+
cancel: async () => {},
|
|
8990
|
+
logFilePath: ""
|
|
8991
|
+
};
|
|
8992
|
+
}
|
|
8993
|
+
let p = !1, m = setInterval(async () => {
|
|
8994
|
+
await l.isCancelled(r) && (console.log(`[${n}] š Job #${r} was cancelled! Halting execution.`), p = !0, clearInterval(m), await f.cancel());
|
|
8995
|
+
}, 3e3), h = await f.done;
|
|
8996
|
+
if (clearInterval(m), f.logFilePath && e.existsSync(f.logFilePath)) try {
|
|
8997
|
+
let e = await c.readLog(f.logFilePath);
|
|
8949
8998
|
await l.saveStepLog(r, a, e);
|
|
8950
8999
|
} catch (e) {
|
|
8951
9000
|
console.error(`[${n}] ā ļø Failed to read step log file:`, e.message);
|
|
8952
9001
|
}
|
|
8953
|
-
let
|
|
9002
|
+
let g = h.exitCode !== 0 || p, _ = h.exitCode === 0 ? "success" : p ? "cancelled" : "failed";
|
|
8954
9003
|
return s.steps[a] = {
|
|
8955
|
-
status:
|
|
8956
|
-
exitCode:
|
|
9004
|
+
status: _,
|
|
9005
|
+
exitCode: h.exitCode,
|
|
8957
9006
|
outputs: {}
|
|
8958
|
-
},
|
|
8959
|
-
failed:
|
|
8960
|
-
|
|
9007
|
+
}, g && console.error(`[${n}] ā Step [${a}] finished with status: ${_}`), {
|
|
9008
|
+
failed: g,
|
|
9009
|
+
cancelled: p,
|
|
9010
|
+
skipped: !1,
|
|
8961
9011
|
report: {
|
|
8962
9012
|
id: a,
|
|
8963
9013
|
name: o,
|
|
8964
|
-
status:
|
|
8965
|
-
durationMs:
|
|
8966
|
-
exitCode:
|
|
8967
|
-
error:
|
|
9014
|
+
status: _,
|
|
9015
|
+
durationMs: h.durationMs,
|
|
9016
|
+
exitCode: h.exitCode,
|
|
9017
|
+
error: h.error?.message,
|
|
8968
9018
|
outputs: {},
|
|
8969
9019
|
logContent: ""
|
|
8970
9020
|
}
|
|
8971
9021
|
};
|
|
8972
9022
|
}
|
|
8973
|
-
function
|
|
9023
|
+
function Qo(e, t, n) {
|
|
8974
9024
|
for (let r = t; r < e.length; r++) {
|
|
8975
9025
|
let t = e[r], i = t.id || `step-${r}`;
|
|
8976
9026
|
n.push({
|
|
@@ -8984,7 +9034,7 @@ function Zo(e, t, n) {
|
|
|
8984
9034
|
});
|
|
8985
9035
|
}
|
|
8986
9036
|
}
|
|
8987
|
-
function
|
|
9037
|
+
function $o(e, t, n, r, i, a, o) {
|
|
8988
9038
|
return {
|
|
8989
9039
|
jobId: e.id.toString(),
|
|
8990
9040
|
workflowName: e.workflow_id,
|
|
@@ -9002,7 +9052,7 @@ function Qo(e, t, n, r, i, a, o) {
|
|
|
9002
9052
|
})
|
|
9003
9053
|
};
|
|
9004
9054
|
}
|
|
9005
|
-
async function
|
|
9055
|
+
async function es(e, t = [], n) {
|
|
9006
9056
|
!Array.isArray(t) || t.length === 0 || (console.log(`[${e}] š¢ Dispatching execution report to ${t.length} reporter(s)...`), await Promise.allSettled(t.map(async (t) => {
|
|
9007
9057
|
try {
|
|
9008
9058
|
await t.report(n);
|
|
@@ -9013,7 +9063,7 @@ async function $o(e, t = [], n) {
|
|
|
9013
9063
|
}
|
|
9014
9064
|
//#endregion
|
|
9015
9065
|
//#region src/config.ts
|
|
9016
|
-
async function
|
|
9066
|
+
async function ts(e) {
|
|
9017
9067
|
let n = {
|
|
9018
9068
|
port: Number(e.port),
|
|
9019
9069
|
database: e.database,
|
|
@@ -9021,10 +9071,10 @@ async function es(e) {
|
|
|
9021
9071
|
workers: e.workers ? Number(e.workers) : void 0
|
|
9022
9072
|
}, r = {}, a = m(e.config);
|
|
9023
9073
|
t(a) && i(a).isFile() && (r = (await import(a)).default || {});
|
|
9024
|
-
let o =
|
|
9074
|
+
let o = ns(r, n);
|
|
9025
9075
|
return t(o.workflows) ? (Fo(o.database), o) : (console.warn(`ā ļø Warning: Workflows directory '${o.workflows}' not found.`), null);
|
|
9026
9076
|
}
|
|
9027
|
-
function
|
|
9077
|
+
function ns(e, t) {
|
|
9028
9078
|
let n = process.env;
|
|
9029
9079
|
return {
|
|
9030
9080
|
port: Number(e.port || t.port || n.PORT || 11235),
|
|
@@ -9039,7 +9089,7 @@ function ts(e, t) {
|
|
|
9039
9089
|
}
|
|
9040
9090
|
//#endregion
|
|
9041
9091
|
//#region src/reporters/json-file.reporter.ts
|
|
9042
|
-
var
|
|
9092
|
+
var rs = class {
|
|
9043
9093
|
name = "json-file";
|
|
9044
9094
|
outputDir;
|
|
9045
9095
|
constructor(e) {
|
|
@@ -9050,7 +9100,7 @@ var ns = class {
|
|
|
9050
9100
|
let n = d.join(this.outputDir, `run-${t.jobId}.json`);
|
|
9051
9101
|
e.writeFileSync(n, JSON.stringify(t, null, 2), "utf-8"), console.log(`š Execution report saved to: ${n}`);
|
|
9052
9102
|
}
|
|
9053
|
-
},
|
|
9103
|
+
}, is = class {
|
|
9054
9104
|
name = "slack";
|
|
9055
9105
|
webhookUrl = "";
|
|
9056
9106
|
token = "";
|
|
@@ -9074,7 +9124,7 @@ var ns = class {
|
|
|
9074
9124
|
})
|
|
9075
9125
|
});
|
|
9076
9126
|
}
|
|
9077
|
-
}, { values:
|
|
9127
|
+
}, { values: as, positionals: os } = a({
|
|
9078
9128
|
allowPositionals: !0,
|
|
9079
9129
|
options: {
|
|
9080
9130
|
config: {
|
|
@@ -9104,11 +9154,11 @@ var ns = class {
|
|
|
9104
9154
|
}
|
|
9105
9155
|
}
|
|
9106
9156
|
});
|
|
9107
|
-
function
|
|
9157
|
+
function ss() {
|
|
9108
9158
|
console.log("\nš Runner CLI š\n\nUsage:\n npx -y @cloud-cli/on <command> [options]\n pnpm dlx -y @cloud-cli/on <command> [options]\n\nCommands:\n start Runs both Webhook Ingress Server and Workers (Default)\n start-server Runs Webhook Ingress Server only (API Gateway mode)\n start-workers Runs Worker Polling loops only (Scalable Worker mode)\n validate Parses and validates workflow YAML files without running\n\nOptions:\n -c, --config Path to runner.config.mjs (default: ./runner.config.mjs, env: RUNNER_CONFIG_PATH)\n -d, --database SQLite Database URL (env: RUNNER_DATABASE_URL)\n -w, --workflows Path to where your workflows are defined (default: on/, env: RUNNER_WORKFLOWS_PATH)\n -p, --port Port for Webhook Ingress Server (default: 11235, env: PORT)\n -k, --workers Number of worker thread loops to spawn (default: 5, env: RUNNER_WORKERS)\n -h, --help Show this help message\n ");
|
|
9109
9159
|
}
|
|
9110
|
-
|
|
9111
|
-
function
|
|
9160
|
+
as.help && (ss(), process.exit(0));
|
|
9161
|
+
function cs(e) {
|
|
9112
9162
|
console.log("š Validating Workflows in:", e.workflows);
|
|
9113
9163
|
let t = new Co(e.workflows), n = r(e.workflows).filter((e) => e.endsWith(".yml") || e.endsWith(".yaml"));
|
|
9114
9164
|
for (let e of n) {
|
|
@@ -9116,22 +9166,22 @@ function ss(e) {
|
|
|
9116
9166
|
console.log(` ā
${e} -> Valid! (${n.length} job matrix variant(s) generated)`);
|
|
9117
9167
|
}
|
|
9118
9168
|
}
|
|
9119
|
-
async function
|
|
9169
|
+
async function ls() {
|
|
9120
9170
|
let e = new Lo("./.env"), t = new Io(process.env.WORKER_NAME || "cli");
|
|
9121
9171
|
return await t.init(), {
|
|
9122
9172
|
secrets: e,
|
|
9123
9173
|
queue: t
|
|
9124
9174
|
};
|
|
9125
9175
|
}
|
|
9126
|
-
async function
|
|
9127
|
-
let e =
|
|
9176
|
+
async function us() {
|
|
9177
|
+
let e = os[0] || "start", t = await ts(as);
|
|
9128
9178
|
switch (t || process.exit(1), e) {
|
|
9129
9179
|
case "validate":
|
|
9130
|
-
|
|
9180
|
+
cs(t);
|
|
9131
9181
|
break;
|
|
9132
9182
|
case "start-server": {
|
|
9133
9183
|
console.log("š Starting Ingress Gateway...");
|
|
9134
|
-
let { queue: e, secrets: n } = await
|
|
9184
|
+
let { queue: e, secrets: n } = await ls();
|
|
9135
9185
|
await Eo.withPort({
|
|
9136
9186
|
config: t,
|
|
9137
9187
|
queue: e,
|
|
@@ -9143,13 +9193,13 @@ async function ls() {
|
|
|
9143
9193
|
}
|
|
9144
9194
|
case "start-workers": {
|
|
9145
9195
|
console.log(`āļø Starting ${t.workers} Worker Loop(s)...`);
|
|
9146
|
-
let { queue: e, secrets: n } = await
|
|
9196
|
+
let { queue: e, secrets: n } = await ls();
|
|
9147
9197
|
Wo(t.workers, e, n, t);
|
|
9148
9198
|
break;
|
|
9149
9199
|
}
|
|
9150
|
-
default: console.error(`ā Unknown command: '${e}'`),
|
|
9200
|
+
default: console.error(`ā Unknown command: '${e}'`), ss(), process.exit(1);
|
|
9151
9201
|
}
|
|
9152
9202
|
}
|
|
9153
|
-
|
|
9203
|
+
us().catch(console.error);
|
|
9154
9204
|
//#endregion
|
|
9155
|
-
export { Cn as HtmlReporter,
|
|
9205
|
+
export { Cn as HtmlReporter, rs as JsonFileReporter, is as SlackReporter };
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEV,mBAAmB,EACnB,oBAAoB,EAGrB,MAAM,YAAY,CAAC;AAGpB,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,aAAa,CAA0C;IAC/D,OAAO,CAAC,SAAS,CAA4B;IAC7C,OAAO,CAAC,KAAK,CAAe;IAC5B,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,UAAU,CAAS;WAEd,QAAQ,CAAC,OAAO,EAAE,oBAAoB,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;gBAK1D,OAAO,EAAE,oBAAoB;IAczC,oBAAoB,CAAC,YAAY,EAAE,mBAAmB;YAIxC,aAAa;IA6B3B;;OAEG;YACW,aAAa;YAyBb,WAAW;IAwBzB,OAAO,CAAC,UAAU;YAiBJ,cAAc;IAmC5B;;OAEG;YACW,kBAAkB;IAehC;;OAEG;YACW,eAAe;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEV,mBAAmB,EACnB,oBAAoB,EAGrB,MAAM,YAAY,CAAC;AAGpB,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,aAAa,CAA0C;IAC/D,OAAO,CAAC,SAAS,CAA4B;IAC7C,OAAO,CAAC,KAAK,CAAe;IAC5B,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,UAAU,CAAS;WAEd,QAAQ,CAAC,OAAO,EAAE,oBAAoB,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;gBAK1D,OAAO,EAAE,oBAAoB;IAczC,oBAAoB,CAAC,YAAY,EAAE,mBAAmB;YAIxC,aAAa;IA6B3B;;OAEG;YACW,aAAa;YAyBb,WAAW;IAwBzB,OAAO,CAAC,UAAU;YAiBJ,cAAc;IAmC5B;;OAEG;YACW,kBAAkB;IAehC;;OAEG;YACW,eAAe;IA0E7B;;OAEG;YAGW,gBAAgB;IA2B9B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAStC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ5B"}
|
package/dist/types.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export interface ExecutionDriver {
|
|
|
37
37
|
/**
|
|
38
38
|
* Executes a step context
|
|
39
39
|
*/
|
|
40
|
-
execute(ctx: StepContext):
|
|
40
|
+
execute(ctx: StepContext): StepExecutionHandle;
|
|
41
41
|
readLog(file: string): Promise<string>;
|
|
42
42
|
}
|
|
43
43
|
export interface PreprocessedWebhook {
|
|
@@ -50,6 +50,7 @@ export interface WebhookPreprocessor {
|
|
|
50
50
|
}
|
|
51
51
|
export interface WorkflowStep {
|
|
52
52
|
id?: string;
|
|
53
|
+
if?: string;
|
|
53
54
|
name?: string;
|
|
54
55
|
run?: string;
|
|
55
56
|
eval?: string;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAE1B;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAEhC;;OAEG;IACH,OAAO,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,4DAA4D;IAC5D,SAAS,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC"}
|
package/dist/worker.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAIL,YAAY,
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/worker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAIL,YAAY,EAOb,MAAM,YAAY,CAAC;AAGpB,eAAO,MAAM,aAAa;;CAEzB,CAAC;AAKF;;GAEG;AACH,wBAAsB,qBAAqB,kBAM1C;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,mBAO1G;AAED;;GAEG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,YAAY,iBAsBrB"}
|