@cloud-cli/on 1.2.9 → 1.2.11

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.
Files changed (44) hide show
  1. package/dist/db-client.d.ts +1 -0
  2. package/dist/db-client.d.ts.map +1 -0
  3. package/dist/drivers/index.d.ts +1 -0
  4. package/dist/drivers/index.d.ts.map +1 -0
  5. package/dist/drivers/standard-process.driver.d.ts +1 -0
  6. package/dist/drivers/standard-process.driver.d.ts.map +1 -0
  7. package/dist/drivers/systemd.driver.d.ts +1 -0
  8. package/dist/drivers/systemd.driver.d.ts.map +1 -0
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/log-redactor.d.ts +1 -0
  12. package/dist/log-redactor.d.ts.map +1 -0
  13. package/dist/on.js +100 -79
  14. package/dist/parser/include-resolver.d.ts +1 -0
  15. package/dist/parser/include-resolver.d.ts.map +1 -0
  16. package/dist/parser/matrix-expander.d.ts +2 -1
  17. package/dist/parser/matrix-expander.d.ts.map +1 -0
  18. package/dist/parser/yaml-loader.d.ts +1 -0
  19. package/dist/parser/yaml-loader.d.ts.map +1 -0
  20. package/dist/plugins/github-status.plugin.d.ts +1 -0
  21. package/dist/plugins/github-status.plugin.d.ts.map +1 -0
  22. package/dist/plugins/manager.d.ts +1 -0
  23. package/dist/plugins/manager.d.ts.map +1 -0
  24. package/dist/preprocessors/github.d.ts +1 -0
  25. package/dist/preprocessors/github.d.ts.map +1 -0
  26. package/dist/queue.d.ts +3 -2
  27. package/dist/queue.d.ts.map +1 -0
  28. package/dist/reporters/html.reporter.d.ts +1 -0
  29. package/dist/reporters/html.reporter.d.ts.map +1 -0
  30. package/dist/reporters/json-file.reporter.d.ts +1 -0
  31. package/dist/reporters/json-file.reporter.d.ts.map +1 -0
  32. package/dist/reporters/slack.reporter.d.ts +1 -0
  33. package/dist/reporters/slack.reporter.d.ts.map +1 -0
  34. package/dist/safe-eval.d.ts +1 -0
  35. package/dist/safe-eval.d.ts.map +1 -0
  36. package/dist/secrets.d.ts +1 -0
  37. package/dist/secrets.d.ts.map +1 -0
  38. package/dist/server.d.ts +1 -0
  39. package/dist/server.d.ts.map +1 -0
  40. package/dist/types.d.ts +2 -0
  41. package/dist/types.d.ts.map +1 -0
  42. package/dist/worker.d.ts +1 -0
  43. package/dist/worker.d.ts.map +1 -0
  44. package/package.json +2 -2
@@ -14,3 +14,4 @@ declare const _default: {
14
14
  };
15
15
  export default _default;
16
16
  export declare function setUrl(u: any): void;
17
+ //# sourceMappingURL=db-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"db-client.d.ts","sourceRoot":"","sources":["../src/db-client.ts"],"names":[],"mappings":"AAGA,iBAAe,KAAK,CAClB,MAAM,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,EACtC,SAAS,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC,EACpC,MAAM,WAAU,gBA8BjB;AAED,eAAO,MAAM,GAAG,mHAA0B,CAAC;AAC3C,eAAO,MAAM,GAAG,mHAA0B,CAAC;AAC3C,eAAO,MAAM,GAAG,mHAA0B,CAAC;AAC3C,eAAO,MAAM,IAAI,mHAA2B,CAAC;AAE7C,wBAAgB,MAAM,CAAC,CAAC,KAAA,QAIvB;;;;;;;;;AAED,wBAAsD;AAEtD,wBAAgB,MAAM,CAAC,CAAC,KAAA,QAEvB"}
@@ -1,2 +1,3 @@
1
1
  import { ExecutionDriver } from '../types.js';
2
2
  export declare function resolveDriver(): Promise<ExecutionDriver>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/drivers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAI9C,wBAAsB,aAAa,IAAI,OAAO,CAAC,eAAe,CAAC,CAU9D"}
@@ -8,3 +8,4 @@ export declare class StandardProcessDriver implements ExecutionDriver {
8
8
  */
9
9
  private killProcessGroup;
10
10
  }
11
+ //# sourceMappingURL=standard-process.driver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-process.driver.d.ts","sourceRoot":"","sources":["../../src/drivers/standard-process.driver.ts"],"names":[],"mappings":"AAGA,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;IAI/B,OAAO,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAoI7D;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAsBzB"}
@@ -4,3 +4,4 @@ export declare class SystemdDriver implements ExecutionDriver {
4
4
  isSupported(): Promise<boolean>;
5
5
  execute(ctx: StepContext): Promise<StepExecutionHandle>;
6
6
  }
7
+ //# sourceMappingURL=systemd.driver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"systemd.driver.d.ts","sourceRoot":"","sources":["../../src/drivers/systemd.driver.ts"],"names":[],"mappings":"AAIA,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;IAQ/B,OAAO,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAqJ9D"}
package/dist/index.d.ts CHANGED
@@ -2,3 +2,4 @@
2
2
  export { HtmlReporter } from './reporters/html.reporter.js';
3
3
  export { JsonFileReporter } from './reporters/json-file.reporter.js';
4
4
  export { SlackReporter } from './reporters/slack.reporter.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAmBA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC"}
@@ -4,3 +4,4 @@ export declare class SecretRedactorStream extends Transform {
4
4
  constructor(secretValues: string[]);
5
5
  _transform(chunk: any, _encoding: BufferEncoding, callback: TransformCallback): void;
6
6
  }
7
+ //# sourceMappingURL=log-redactor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log-redactor.d.ts","sourceRoot":"","sources":["../src/log-redactor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE3D,qBAAa,oBAAqB,SAAQ,SAAS;IACjD,OAAO,CAAC,YAAY,CAAW;gBAEnB,YAAY,EAAE,MAAM,EAAE;IAMlC,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,cAAc,EAAE,QAAQ,EAAE,iBAAiB;CAa9E"}
package/dist/on.js CHANGED
@@ -3402,9 +3402,7 @@ var _n = {
3402
3402
  }
3403
3403
  }
3404
3404
  }, yn = class {
3405
- constructor() {
3406
- this.name = "github";
3407
- }
3405
+ name = "github";
3408
3406
  parse(e, t, n) {
3409
3407
  let r = !0, i = null, a = e["x-hub-signature-256"];
3410
3408
  if (n && a) {
@@ -3795,8 +3793,11 @@ function Cn(e, ...t) {
3795
3793
  return new RegExp(n, "g");
3796
3794
  }
3797
3795
  var wn, Tn, En, Dn = class {
3796
+ name = "html";
3797
+ outputDir;
3798
+ ansiUp;
3798
3799
  constructor(e) {
3799
- this.name = "html", this.outputDir = e.outputDir, this.ansiUp = new xn(), this.ansiUp.use_classes = !1;
3800
+ this.outputDir = e.outputDir, this.ansiUp = new xn(), this.ansiUp.use_classes = !1;
3800
3801
  }
3801
3802
  async report(t) {
3802
3803
  e.mkdirSync(this.outputDir, { recursive: !0 });
@@ -3805,8 +3806,8 @@ var wn, Tn, En, Dn = class {
3805
3806
  }
3806
3807
  generateHtml(t) {
3807
3808
  let n = t.status === "success" ? "bg-emerald-500/10 text-emerald-400 border-emerald-500/20" : t.status === "failed" ? "bg-rose-500/10 text-rose-400 border-rose-500/20" : "bg-amber-500/10 text-amber-400 border-amber-500/20", r = t.steps.map((t, n) => {
3808
- let r = "";
3809
- if (t.logFilePath && e.existsSync(t.logFilePath)) try {
3809
+ let r = t.logContent;
3810
+ if (!r && t.logFilePath && e.existsSync(t.logFilePath)) try {
3810
3811
  r = e.readFileSync(t.logFilePath, "utf-8");
3811
3812
  } catch {}
3812
3813
  let i = r ? this.ansiUp.ansi_to_html(r) : "<span class=\"text-gray-500\">(No terminal log output recorded for this step)</span>", a = t.status === "success" ? "text-emerald-400 bg-emerald-500/10" : t.status === "failed" ? "text-rose-400 bg-rose-500/10" : "text-gray-400 bg-gray-500/10";
@@ -3871,12 +3872,18 @@ var wn, Tn, En, Dn = class {
3871
3872
  </html>`;
3872
3873
  }
3873
3874
  }, On = class e {
3875
+ server;
3876
+ preprocessors = /* @__PURE__ */ new Map();
3877
+ workflows = [];
3878
+ queue;
3879
+ secrets;
3880
+ adminToken;
3874
3881
  static async withPort(t) {
3875
3882
  let { port: n, ...r } = t;
3876
3883
  return new e(r).listen(n);
3877
3884
  }
3878
3885
  constructor(e) {
3879
- this.preprocessors = /* @__PURE__ */ new Map(), this.workflows = [], this.queue = e.queue, this.secrets = e.secrets, this.adminToken = e.adminToken, this.workflows = e.workflows, this.registerPreprocessor(new yn()), this.server = d.createServer((e, t) => this.handleRequest(e, t));
3886
+ this.queue = e.queue, this.secrets = e.secrets, this.adminToken = e.adminToken, this.workflows = e.workflows, this.registerPreprocessor(new yn()), this.server = d.createServer((e, t) => this.handleRequest(e, t));
3880
3887
  }
3881
3888
  registerPreprocessor(e) {
3882
3889
  this.preprocessors.set(e.name, e);
@@ -8299,6 +8306,8 @@ var Oo = /* @__PURE__ */ re({
8299
8306
  visit: () => Hn,
8300
8307
  visitAsync: () => Wn
8301
8308
  }), ko = class {
8309
+ baseDir;
8310
+ maxDepth;
8302
8311
  constructor(e, t = 5) {
8303
8312
  this.baseDir = a.resolve(e), this.maxDepth = t;
8304
8313
  }
@@ -8416,6 +8425,7 @@ function Bo(e) {
8416
8425
  //#endregion
8417
8426
  //#region src/queue.ts
8418
8427
  var Vo = class {
8428
+ workerId;
8419
8429
  constructor(e) {
8420
8430
  this.workerId = e;
8421
8431
  }
@@ -8668,8 +8678,10 @@ var Vo = class {
8668
8678
  };
8669
8679
  t.exports.configDotenv = S.configDotenv, t.exports._configVault = S._configVault, t.exports._parseVault = S._parseVault, t.exports.config = S.config, t.exports.decrypt = S.decrypt, t.exports.parse = S.parse, t.exports.populate = S.populate, t.exports = S;
8670
8680
  })))(), 1), Wo = class {
8681
+ envFilePath;
8682
+ secrets = /* @__PURE__ */ new Map();
8671
8683
  constructor(e) {
8672
- this.envFilePath = e, this.secrets = /* @__PURE__ */ new Map();
8684
+ this.envFilePath = e;
8673
8685
  }
8674
8686
  reload() {
8675
8687
  for (let [e, t] of Object.entries(process.env)) e.startsWith("SECRET_") && t && this.secrets.set(e.replace("SECRET_", ""), t);
@@ -8688,9 +8700,7 @@ var Vo = class {
8688
8700
  return Array.from(this.secrets.values()).filter((e) => e.length > 3);
8689
8701
  }
8690
8702
  }, Go = u(g), Ko = class {
8691
- constructor() {
8692
- this.name = "systemd";
8693
- }
8703
+ name = "systemd";
8694
8704
  async isSupported() {
8695
8705
  try {
8696
8706
  return e.existsSync("/run/systemd/system");
@@ -8699,10 +8709,9 @@ var Vo = class {
8699
8709
  }
8700
8710
  }
8701
8711
  async execute(t) {
8702
- let n = Date.now(), r = null, i = "";
8712
+ let n = null, r = Date.now(), i = a.join(t.workspacePath, ".logs"), o = a.join(i, `step-${t.stepId}.log`), s = a.join(t.workspacePath, "wd");
8703
8713
  try {
8704
- let n = a.join(t.workspacePath, ".logs");
8705
- e.mkdirSync(n, { recursive: !0 }), i = a.join(n, `step-${t.stepId}.log`), r = e.openSync(i, "a");
8714
+ e.mkdirSync(i, { recursive: !0 }), e.mkdirSync(s, { recursive: !0 }), e.chmodSync(s, 511), console.log(`📁 Created workspace at ${s}`), n = e.openSync(o, "a");
8706
8715
  } catch (e) {
8707
8716
  return {
8708
8717
  done: Promise.resolve({
@@ -8714,24 +8723,27 @@ var Vo = class {
8714
8723
  logFilePath: ""
8715
8724
  };
8716
8725
  }
8717
- let o = `workflow-${t.jobId}-${t.stepId}`.replace(/[^a-zA-Z0-9_-]/g, "_"), s = a.join(t.workspacePath, "wd"), c = [
8718
- `--unit=${o}`,
8726
+ let c = `workflow-${t.jobId}-${t.stepId}`.replace(/[^a-zA-Z0-9_-]/g, "_"), l = [
8727
+ `--unit=${c}`,
8719
8728
  "--wait",
8720
8729
  "--pipe",
8730
+ "--collect",
8731
+ "-p",
8732
+ "RemainAfterExit=no",
8721
8733
  `--working-directory=${s}`
8722
8734
  ];
8723
- if (t.env) for (let [e, n] of Object.entries(t.env)) c.push(`--setenv=${e}=${n}`);
8735
+ if (t.env) for (let [e, n] of Object.entries(t.env)) l.push(`--setenv=${e}=${n}`);
8724
8736
  if (t.timeoutMs) {
8725
8737
  let e = Math.ceil(t.timeoutMs / 1e3);
8726
- c.push(`--property=RuntimeMaxSec=${e}`);
8738
+ l.push(`--property=RuntimeMaxSec=${e}`);
8727
8739
  }
8728
- let l;
8729
- l = t.image ? [
8740
+ let u;
8741
+ u = t.image ? [
8730
8742
  "docker",
8731
8743
  "run",
8732
8744
  "--rm",
8733
8745
  "--init",
8734
- `--name=${o}`,
8746
+ `--name=${c}`,
8735
8747
  "-v",
8736
8748
  `${s}:/workspace`,
8737
8749
  "-w",
@@ -8744,79 +8756,81 @@ var Vo = class {
8744
8756
  process.env.SHELL || "sh",
8745
8757
  "-c",
8746
8758
  t.command
8747
- ], e.mkdirSync(s, { recursive: !0 }), console.log(`📁 Created workspace at ${s}`);
8748
- let u;
8759
+ ], process.env.DEBUG && console.log("$ systemd-run", [
8760
+ ...l,
8761
+ "--",
8762
+ ...u
8763
+ ].join(" "));
8764
+ let d;
8749
8765
  try {
8750
- u = _("systemd-run", [
8751
- ...c,
8766
+ d = _("systemd-run", [
8767
+ ...l,
8752
8768
  "--",
8753
- ...l
8769
+ ...u
8754
8770
  ], { stdio: [
8755
8771
  "ignore",
8756
- r,
8757
- r
8772
+ n,
8773
+ n
8758
8774
  ] });
8759
8775
  } catch (t) {
8760
8776
  try {
8761
- r !== null && e.closeSync(r);
8777
+ e.closeSync(n);
8762
8778
  } catch {}
8763
8779
  return {
8764
8780
  done: Promise.resolve({
8765
8781
  exitCode: 1,
8766
- durationMs: Date.now() - n,
8782
+ durationMs: Date.now() - r,
8767
8783
  error: /* @__PURE__ */ Error(`Failed to spawn systemd-run: ${t.message}`)
8768
8784
  }),
8769
8785
  cancel: async () => {},
8770
- logFilePath: i
8786
+ logFilePath: o
8771
8787
  };
8772
8788
  }
8773
- let d = !1;
8789
+ let f = !1;
8774
8790
  return {
8775
8791
  done: new Promise((t) => {
8776
- let i = !1, a = (n) => {
8792
+ let i = !1, a = (r) => {
8777
8793
  if (!i) {
8778
8794
  i = !0;
8779
8795
  try {
8780
- r !== null && e.closeSync(r);
8796
+ e.closeSync(n);
8781
8797
  } catch {}
8782
- t(n);
8798
+ t(r);
8783
8799
  }
8784
8800
  };
8785
- u.on("close", (e) => {
8786
- a({
8787
- exitCode: e ?? (d ? 130 : 1),
8788
- durationMs: Date.now() - n,
8789
- error: d ? /* @__PURE__ */ Error("Step cancelled by user or systemd timeout") : void 0
8801
+ d.on("close", (e, t) => {
8802
+ let n = e === null ? t ? f ? 130 : 1 : 0 : e;
8803
+ console.log("close [exitCode, code, signal]", n, e, t), a({
8804
+ exitCode: n,
8805
+ durationMs: Date.now() - r,
8806
+ error: f ? /* @__PURE__ */ Error("Step cancelled by user or systemd timeout") : void 0
8790
8807
  });
8791
- }), u.on("error", (e) => {
8792
- a({
8808
+ }), d.on("error", (e) => {
8809
+ console.log("error [exitCode, error]", 1, e), a({
8793
8810
  exitCode: 1,
8794
- durationMs: Date.now() - n,
8811
+ durationMs: Date.now() - r,
8795
8812
  error: e
8796
8813
  });
8797
8814
  });
8798
8815
  }),
8799
8816
  cancel: async () => {
8800
- d = !0;
8817
+ f = !0;
8801
8818
  try {
8802
- t.image && await Go(`docker stop -t 2 ${o}`).catch(() => {}), await Go(`systemctl stop ${o}.service`).catch(() => {});
8819
+ t.image && await Go(`docker stop -t 2 ${c}`).catch(() => {}), await Go(`systemctl stop ${c}.service`).catch(() => {});
8803
8820
  } catch {}
8804
8821
  },
8805
- logFilePath: i
8822
+ logFilePath: o
8806
8823
  };
8807
8824
  }
8808
8825
  }, qo = class {
8809
- constructor() {
8810
- this.name = "standard-process";
8811
- }
8826
+ name = "standard-process";
8812
8827
  async isSupported() {
8813
8828
  return !0;
8814
8829
  }
8815
8830
  async execute(t) {
8816
- let n = Date.now(), r = null, i = "";
8831
+ let n = null, r = Date.now(), i = a.join(t.workspacePath, ".logs"), o = a.join(i, `step-${t.stepId}.log`), s = a.join(t.workspacePath, "wd");
8817
8832
  try {
8818
- let n = a.join(t.workspacePath, ".logs");
8819
- e.mkdirSync(n, { recursive: !0 }), i = a.join(n, `step-${t.stepId}.log`), r = e.openSync(i, "a");
8833
+ e.mkdirSync(i, { recursive: !0 }), e.mkdirSync(s, { recursive: !0 }), e.chmodSync(s, 511), console.log(`📁 Created workspace at ${s}`), n = e.openSync(o, "a");
8820
8834
  } catch (e) {
8821
8835
  return {
8822
8836
  done: Promise.resolve({
@@ -8828,13 +8842,13 @@ var Vo = class {
8828
8842
  logFilePath: ""
8829
8843
  };
8830
8844
  }
8831
- let o, s, c = a.join(t.workspacePath, "wd");
8832
- t.image ? (o = "docker", s = [
8845
+ let c, l;
8846
+ t.image ? (c = "docker", l = [
8833
8847
  "run",
8834
8848
  "--rm",
8835
8849
  "--init",
8836
8850
  "-v",
8837
- `${c}:/workspace`,
8851
+ `${s}:/workspace`,
8838
8852
  "-w",
8839
8853
  "/workspace",
8840
8854
  "--entrypoint",
@@ -8842,11 +8856,11 @@ var Vo = class {
8842
8856
  t.image,
8843
8857
  "-c",
8844
8858
  t.command
8845
- ]) : (o = process.env.SHELL || "sh", s = ["-c", t.command]), e.mkdirSync(c, { recursive: !0 }), console.log(`📁 Created workspace at ${c}`);
8846
- let l;
8859
+ ]) : (c = process.env.SHELL || "sh", l = ["-c", t.command]), process.env.DEBUG && console.log("$ " + c, l.join(" "));
8860
+ let u;
8847
8861
  try {
8848
- l = _(o, s, {
8849
- cwd: c,
8862
+ u = _(c, l, {
8863
+ cwd: s,
8850
8864
  env: {
8851
8865
  ...process.env,
8852
8866
  ...t.env
@@ -8854,56 +8868,56 @@ var Vo = class {
8854
8868
  detached: !0,
8855
8869
  stdio: [
8856
8870
  "ignore",
8857
- r,
8858
- r
8871
+ n,
8872
+ n
8859
8873
  ]
8860
8874
  });
8861
8875
  } catch (t) {
8862
8876
  try {
8863
- r !== null && e.closeSync(r);
8877
+ e.closeSync(n);
8864
8878
  } catch {}
8865
8879
  return {
8866
8880
  done: Promise.resolve({
8867
8881
  exitCode: 1,
8868
- durationMs: Date.now() - n,
8882
+ durationMs: Date.now() - r,
8869
8883
  error: /* @__PURE__ */ Error(`Failed to spawn process: ${t.message}`)
8870
8884
  }),
8871
8885
  cancel: async () => {},
8872
- logFilePath: i
8886
+ logFilePath: o
8873
8887
  };
8874
8888
  }
8875
- let u = !1, d = null;
8889
+ let d = !1, f = null;
8876
8890
  return {
8877
8891
  done: new Promise((i) => {
8878
8892
  let a = !1, o = (t) => {
8879
8893
  if (!a) {
8880
- a = !0, d && clearTimeout(d);
8894
+ a = !0, f && clearTimeout(f);
8881
8895
  try {
8882
- r !== null && e.closeSync(r);
8896
+ e.closeSync(n);
8883
8897
  } catch {}
8884
8898
  i(t);
8885
8899
  }
8886
8900
  };
8887
- t.timeoutMs && (d = setTimeout(() => {
8888
- u = !0, this.killProcessGroup(l);
8889
- }, t.timeoutMs), d.unref()), l.on("close", (e) => {
8901
+ t.timeoutMs && (f = setTimeout(() => {
8902
+ d = !0, this.killProcessGroup(u);
8903
+ }, t.timeoutMs), f.unref()), u.on("close", (e) => {
8890
8904
  o({
8891
- exitCode: e ?? (u ? 130 : 1),
8892
- durationMs: Date.now() - n,
8893
- error: u ? /* @__PURE__ */ Error("Step timed out or was cancelled by user") : void 0
8905
+ exitCode: e ?? (d ? 130 : 1),
8906
+ durationMs: Date.now() - r,
8907
+ error: d ? /* @__PURE__ */ Error("Step timed out or was cancelled by user") : void 0
8894
8908
  });
8895
- }), l.on("error", (e) => {
8909
+ }), u.on("error", (e) => {
8896
8910
  o({
8897
8911
  exitCode: 1,
8898
- durationMs: Date.now() - n,
8912
+ durationMs: Date.now() - r,
8899
8913
  error: e
8900
8914
  });
8901
8915
  });
8902
8916
  }),
8903
8917
  cancel: async () => {
8904
- u = !0, this.killProcessGroup(l);
8918
+ d = !0, this.killProcessGroup(u);
8905
8919
  },
8906
- logFilePath: i
8920
+ logFilePath: o
8907
8921
  };
8908
8922
  }
8909
8923
  killProcessGroup(e) {
@@ -9121,8 +9135,10 @@ async function is(e, t = [], n) {
9121
9135
  //#endregion
9122
9136
  //#region src/reporters/json-file.reporter.ts
9123
9137
  var as = class {
9138
+ name = "json-file";
9139
+ outputDir;
9124
9140
  constructor(e) {
9125
- this.name = "json-file", this.outputDir = e.outputDir;
9141
+ this.outputDir = e.outputDir;
9126
9142
  }
9127
9143
  async report(t) {
9128
9144
  e.mkdirSync(this.outputDir, { recursive: !0 });
@@ -9130,8 +9146,13 @@ var as = class {
9130
9146
  e.writeFileSync(n, JSON.stringify(t, null, 2), "utf-8"), console.log(`📊 Execution report saved to: ${n}`);
9131
9147
  }
9132
9148
  }, os = class {
9149
+ name = "slack";
9150
+ webhookUrl = "";
9151
+ token = "";
9152
+ channel = "";
9153
+ notifyOn = ["failed"];
9133
9154
  constructor(e) {
9134
- this.name = "slack", this.webhookUrl = "", this.token = "", this.channel = "", this.notifyOn = ["failed"], Object.assign(this, e);
9155
+ Object.assign(this, e);
9135
9156
  }
9136
9157
  async report(e) {
9137
9158
  if (!this.notifyOn.includes(e.status)) return;
@@ -7,3 +7,4 @@ export declare class WorkflowIncludeResolver {
7
7
  */
8
8
  resolve(filePath: string, visited?: Set<string>, depth?: number): any;
9
9
  }
10
+ //# sourceMappingURL=include-resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"include-resolver.d.ts","sourceRoot":"","sources":["../../src/parser/include-resolver.ts"],"names":[],"mappings":"AAIA,qBAAa,uBAAuB;IAClC,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,QAAQ,CAAS;gBAEb,OAAO,EAAE,MAAM,EAAE,QAAQ,SAAI;IAKzC;;OAEG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,cAAoB,EAAE,KAAK,SAAI,GAAG,GAAG;CA0CvE"}
@@ -1,5 +1,6 @@
1
- import { ParsedWorkflow } from '../types';
1
+ import type { ParsedWorkflow } from '../types.js';
2
2
  /**
3
3
  * Expands a workflow definition containing a `strategy.matrix` into dynamic single-instance workflow jobs.
4
4
  */
5
5
  export declare function expandMatrix(workflow: ParsedWorkflow): ParsedWorkflow[];
6
+ //# sourceMappingURL=matrix-expander.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matrix-expander.d.ts","sourceRoot":"","sources":["../../src/parser/matrix-expander.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,cAAc,GAAG,cAAc,EAAE,CAkDvE"}
@@ -4,3 +4,4 @@ export declare class YamlLoader {
4
4
  static from(path: string): Promise<WorkflowDefinition[]>;
5
5
  static loadFile(path: string, resolver: WorkflowIncludeResolver): WorkflowDefinition[];
6
6
  }
7
+ //# sourceMappingURL=yaml-loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yaml-loader.d.ts","sourceRoot":"","sources":["../../src/parser/yaml-loader.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,qBAAa,UAAU;WACR,IAAI,CAAC,IAAI,EAAE,MAAM;IAiB9B,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,uBAAuB;CA6BhE"}
@@ -5,3 +5,4 @@ export declare class GitHubStatusPlugin implements WorkflowPlugin {
5
5
  onWorkflowFinish(wf: WorkflowContext, status: 'success' | 'failed'): Promise<void>;
6
6
  private updateStatus;
7
7
  }
8
+ //# sourceMappingURL=github-status.plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github-status.plugin.d.ts","sourceRoot":"","sources":["../../src/plugins/github-status.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9D,qBAAa,kBAAmB,YAAW,cAAc;IACvD,IAAI,SAA0B;IAExB,eAAe,CAAC,EAAE,EAAE,eAAe;IAMnC,gBAAgB,CAAC,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,GAAG,QAAQ;YAS1D,YAAY;CAK3B"}
@@ -5,3 +5,4 @@ export declare class PluginManager {
5
5
  triggerWorkflowStart(wf: WorkflowContext): Promise<void>;
6
6
  triggerWorkflowFinish(wf: WorkflowContext, status: 'success' | 'failed'): Promise<void>;
7
7
  }
8
+ //# sourceMappingURL=manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/plugins/manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9D,qBAAa,aAAa;IACxB,OAAO,CAAC,OAAO,CAAwB;IAEvC,QAAQ,CAAC,MAAM,EAAE,cAAc;IAKzB,oBAAoB,CAAC,EAAE,EAAE,eAAe;IAUxC,qBAAqB,CAAC,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,GAAG,QAAQ;CAS9E"}
@@ -3,3 +3,4 @@ export declare class GitHubPreprocessor implements WebhookPreprocessor {
3
3
  name: string;
4
4
  parse(headers: Record<string, string>, rawBodyBuffer: Buffer, secret?: string): PreprocessedWebhook;
5
5
  }
6
+ //# sourceMappingURL=github.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../src/preprocessors/github.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBAAa,kBAAmB,YAAW,mBAAmB;IAC5D,IAAI,SAAY;IAEhB,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,mBAAmB;CA+BpG"}
package/dist/queue.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { JobPayload, JobRecord, JobStatus } from './types.js';
1
+ import { WorkflowExecutionReport, JobPayload, JobRecord, JobStatus } from './types.js';
2
2
  export declare class QueueManager {
3
3
  private workerId;
4
4
  constructor(workerId: string);
@@ -34,7 +34,7 @@ export declare class QueueManager {
34
34
  /**
35
35
  * Save lightweight summary report (NO heavy logs in this JSON!)
36
36
  */
37
- saveReport(jobId: string | number, report: any): Promise<void>;
37
+ saveReport(jobId: string | number, report: WorkflowExecutionReport): Promise<void>;
38
38
  /**
39
39
  * Save terminal log output for a specific step
40
40
  */
@@ -44,3 +44,4 @@ export declare class QueueManager {
44
44
  */
45
45
  getJobLogs(jobId: string | number): Promise<Record<string, string>>;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@@ -12,3 +12,4 @@ export declare class HtmlReporter implements Reporter {
12
12
  */
13
13
  generateHtml(execReport: WorkflowExecutionReport): string;
14
14
  }
15
+ //# sourceMappingURL=html.reporter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.reporter.d.ts","sourceRoot":"","sources":["../../src/reporters/html.reporter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEhE,qBAAa,YAAa,YAAW,QAAQ;IAC3C,IAAI,SAAU;IACd,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,MAAM,CAAS;gBAEX,OAAO,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE;IAMpC,MAAM,CAAC,UAAU,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAShE;;OAEG;IACH,YAAY,CAAC,UAAU,EAAE,uBAAuB,GAAG,MAAM;CA2F1D"}
@@ -7,3 +7,4 @@ export declare class JsonFileReporter implements Reporter {
7
7
  });
8
8
  report(execReport: WorkflowExecutionReport): Promise<void>;
9
9
  }
10
+ //# sourceMappingURL=json-file.reporter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-file.reporter.d.ts","sourceRoot":"","sources":["../../src/reporters/json-file.reporter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEhE,qBAAa,gBAAiB,YAAW,QAAQ;IAC/C,IAAI,SAAe;IACnB,OAAO,CAAC,SAAS,CAAS;gBAEd,OAAO,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE;IAIpC,MAAM,CAAC,UAAU,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;CAQjE"}
@@ -13,3 +13,4 @@ export declare class SlackReporter implements Reporter {
13
13
  });
14
14
  report(execReport: WorkflowExecutionReport): Promise<void>;
15
15
  }
16
+ //# sourceMappingURL=slack.reporter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slack.reporter.d.ts","sourceRoot":"","sources":["../../src/reporters/slack.reporter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEhE,qBAAa,aAAc,YAAW,QAAQ;IAC5C,QAAQ,CAAC,IAAI,WAAW;IACxB,OAAO,CAAC,UAAU,CAAc;IAChC,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,QAAQ,CAAwC;gBAE5C,OAAO,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,CAAC,SAAS,GAAG,QAAQ,CAAC,EAAE,CAAA;KAAE;IAI1G,MAAM,CAAC,UAAU,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;CAejE"}
@@ -26,3 +26,4 @@ export declare class SafeExpressionEvaluator {
26
26
  */
27
27
  private static evalNodeAsync;
28
28
  }
29
+ //# sourceMappingURL=safe-eval.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"safe-eval.d.ts","sourceRoot":"","sources":["../src/safe-eval.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAQ/C,CAAC;AAEF,qBAAa,uBAAuB;IAClC;;;;;OAKG;WACU,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAerF;;;;OAIG;WACU,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKjG;;OAEG;WACU,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAoB9F;;OAEG;WACU,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAIzF;;OAEG;mBACkB,aAAa;CAgKnC"}
package/dist/secrets.d.ts CHANGED
@@ -13,3 +13,4 @@ export declare class SecretStore {
13
13
  */
14
14
  getSecretValuesForRedaction(): string[];
15
15
  }
16
+ //# sourceMappingURL=secrets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../src/secrets.ts"],"names":[],"mappings":"AAGA,qBAAa,WAAW;IAMV,OAAO,CAAC,WAAW,CAAC;IALhC,OAAO,CAAC,OAAO,CAA6B;IAE5C;;OAEG;gBACiB,WAAW,CAAC,EAAE,MAAM,YAAA;IAExC,MAAM;IAkBN,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIpC,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAIhC;;OAEG;IACH,2BAA2B,IAAI,MAAM,EAAE;CAGxC"}
package/dist/server.d.ts CHANGED
@@ -31,3 +31,4 @@ export declare class WebhookServer {
31
31
  listen(port: number): Promise<WebhookServer>;
32
32
  stop(): Promise<void>;
33
33
  }
34
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAA+C,MAAM,YAAY,CAAC;AAGpH,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;IAWzC,oBAAoB,CAAC,YAAY,EAAE,mBAAmB;YAIxC,aAAa;IA6B3B;;OAEG;YACW,aAAa;IA+F3B;;OAEG;YACW,kBAAkB;IAehC;;OAEG;YACW,eAAe;IA0E7B;;OAEG;YAGW,gBAAgB;IA0B9B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAStC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ5B"}
package/dist/types.d.ts CHANGED
@@ -142,6 +142,7 @@ export interface StepReport {
142
142
  error?: string;
143
143
  outputs: Record<string, any>;
144
144
  logFilePath: string;
145
+ logContent?: string;
145
146
  }
146
147
  export interface WorkflowExecutionReport {
147
148
  jobId: string;
@@ -179,3 +180,4 @@ export interface RunnerConfig {
179
180
  reporters: Reporter[];
180
181
  }
181
182
  export type UserRunnerConfig = Partial<RunnerConfig>;
183
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +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,MAA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AE,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,UAAU,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,YAAY;IAC3B,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,4DAA4D;IAC5D,SAAS,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC"}
package/dist/worker.d.ts CHANGED
@@ -16,3 +16,4 @@ export declare function startWorkers(count: number, queue: QueueManager, secrets
16
16
  * Main worker polling loop
17
17
  */
18
18
  export declare function startWorkerLoop(workerId: string, queue: QueueManager, secrets: SecretStore, config: RunnerConfig): Promise<void>;
19
+ //# sourceMappingURL=worker.d.ts.map
@@ -0,0 +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,EAEL,YAAY,EAMb,MAAM,YAAY,CAAC;AAEpB,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,mBAG1G;AAED;;GAEG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,YAAY,iBAsBrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/on",
3
- "version": "1.2.9",
3
+ "version": "1.2.11",
4
4
  "description": "CLI entry point for the on plugin ecosystem.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.30.3",
@@ -38,7 +38,7 @@
38
38
  "@typescript-eslint/eslint-plugin": "^8.66.0",
39
39
  "@typescript-eslint/parser": "^8.66.0",
40
40
  "eslint": "10.8.0",
41
- "tsx": "^4.23.10",
41
+ "tsx": "^4.23.11",
42
42
  "typescript": "^6.0.3",
43
43
  "typescript-eslint": "^8.66.0",
44
44
  "vite": "^8.2.1",