@cloud-cli/on 1.3.0 → 1.5.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/on.js CHANGED
@@ -3290,7 +3290,9 @@ var dn = {
3290
3290
  return this.evaluateExpression(n, t);
3291
3291
  }
3292
3292
  static async evaluateCondition(e, t = {}) {
3293
- return !!await this.evaluateExpression(e, t);
3293
+ typeof e == "string" && (e = [e]);
3294
+ for (let n of e) if (await this.evaluateExpression(n, t)) return !0;
3295
+ return !1;
3294
3296
  }
3295
3297
  static async evaluateExpression(e, t = {}) {
3296
3298
  if (!e || typeof e != "string") return e;
@@ -3893,40 +3895,17 @@ var vn, yn, bn, xn = class {
3893
3895
  }
3894
3896
  async handleWebhook(e, t, n) {
3895
3897
  try {
3896
- let r = [], i = 0;
3897
- for await (let e of t) {
3898
- if (i += e.length, i > 5242880) return n.writeHead(413, { "Content-Type": "application/json" }), n.end(JSON.stringify({ error: "Payload size exceeds limit" }));
3899
- r.push(typeof e == "string" ? Buffer.from(e) : e);
3900
- }
3901
- let a = Buffer.concat(r), o = Object.fromEntries(Object.entries(t.headers).map(([e, t]) => [e.toLowerCase(), Array.isArray(t) ? t[0] : t || ""])), s = this.preprocessors.get(e), c = this.secrets.get(`${e.toUpperCase()}_WEBHOOK_SECRET`), l = {}, u = !0;
3902
- if (s) {
3903
- let e = s.parse(o, a, c);
3904
- u = e.isValid, l = e.inputs;
3905
- } else try {
3906
- l = JSON.parse(a.toString("utf-8"));
3907
- } catch {}
3908
- if (!u) return n.writeHead(401, { "Content-Type": "application/json" }), n.end(JSON.stringify({ error: "Invalid HMAC signature or authentication failed" }));
3909
- let d = [];
3910
- for (let t of this.workflows) {
3911
- if (t.on.provider !== e) continue;
3912
- if (t.on.if) try {
3913
- if (!fn.evaluateCondition(t.on.if, { inputs: l })) continue;
3914
- } catch (e) {
3915
- console.error(`⚠️ Condition evaluation error in workflow [${t.id}]:`, e.message);
3916
- continue;
3917
- }
3918
- let n;
3919
- t.concurrency?.group && (n = await fn.evaluateValue(t.concurrency.group, { inputs: l }));
3920
- let r = {
3921
- workflowId: t.id,
3922
- steps: t.steps,
3923
- inputs: l
3924
- };
3925
- await this.queue.enqueue(t.id, r, n), d.push(t.id);
3898
+ let { rawBuffer: r, headers: i } = await this.readRequest(t, n);
3899
+ if (n.headersSent || !r) return;
3900
+ let { isValid: a, inputs: o } = this.preprocess(e, i, r);
3901
+ if (!a) {
3902
+ n.writeHead(401, { "Content-Type": "application/json" }), n.end(JSON.stringify({ error: "Invalid HMAC signature or authentication failed" }));
3903
+ return;
3926
3904
  }
3905
+ let s = this.matchWorkflows(e, o);
3927
3906
  n.writeHead(202, { "Content-Type": "application/json" }), n.end(JSON.stringify({
3928
3907
  message: "Webhook processed",
3929
- triggeredWorkflows: d
3908
+ triggeredWorkflows: s
3930
3909
  }));
3931
3910
  } catch (e) {
3932
3911
  console.error("❌ Webhook Ingress Error:", e), n.writeHead(500, { "Content-Type": "application/json" }), n.end(JSON.stringify({
@@ -3935,6 +3914,63 @@ var vn, yn, bn, xn = class {
3935
3914
  }));
3936
3915
  }
3937
3916
  }
3917
+ async readRequest(e, t) {
3918
+ let n = [], r = 0;
3919
+ for await (let i of e) {
3920
+ if (r += i.length, r > 5242880) return t.writeHead(413, { "Content-Type": "application/json" }), t.end(JSON.stringify({ error: "Payload size exceeds limit" })), {
3921
+ rawBuffer: null,
3922
+ headers: {}
3923
+ };
3924
+ n.push(typeof i == "string" ? Buffer.from(i) : i);
3925
+ }
3926
+ return {
3927
+ rawBuffer: Buffer.concat(n),
3928
+ headers: Object.fromEntries(Object.entries(e.headers).map(([e, t]) => [e.toLowerCase(), Array.isArray(t) ? t[0] : t || ""]))
3929
+ };
3930
+ }
3931
+ preprocess(e, t, n) {
3932
+ let r = this.secrets.get(`${e.toUpperCase()}_WEBHOOK_SECRET`), i = this.preprocessors.get(e);
3933
+ try {
3934
+ if (i) {
3935
+ let { inputs: e, isValid: a } = i.parse(t, n, r);
3936
+ return {
3937
+ inputs: e,
3938
+ isValid: a
3939
+ };
3940
+ }
3941
+ return {
3942
+ isValid: !0,
3943
+ inputs: JSON.parse(n.toString("utf-8"))
3944
+ };
3945
+ } catch {
3946
+ return {
3947
+ isValid: !1,
3948
+ inputs: null
3949
+ };
3950
+ }
3951
+ }
3952
+ async matchWorkflows(e, t) {
3953
+ let n = [];
3954
+ for (let r of this.workflows) {
3955
+ if (r.on.provider !== e) continue;
3956
+ if (r.on.if) try {
3957
+ if (!fn.evaluateCondition(r.on.if, { inputs: t })) continue;
3958
+ } catch (e) {
3959
+ console.error(`⚠️ Condition evaluation error in workflow [${r.id}]:`, e.message);
3960
+ continue;
3961
+ }
3962
+ let i;
3963
+ r.concurrency?.group && (i = await fn.evaluateValue(r.concurrency.group, { inputs: t }));
3964
+ let a = {
3965
+ workflowId: r.id,
3966
+ env: r.env,
3967
+ steps: r.steps,
3968
+ inputs: t
3969
+ };
3970
+ await this.queue.enqueue(r.id, a, i), n.push(r.id);
3971
+ }
3972
+ return n;
3973
+ }
3938
3974
  async handleSecretReload(e, t) {
3939
3975
  if (e.headers.authorization !== `Bearer ${this.adminToken}`) return t.writeHead(403, { "Content-Type": "application/json" }), t.end(JSON.stringify({ error: "Unauthorized" }));
3940
3976
  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" }));
@@ -8362,16 +8398,24 @@ var wo = class e {
8362
8398
  let n = [];
8363
8399
  try {
8364
8400
  let r = Co(t.resolve(e));
8365
- for (let e of r) n.push({
8366
- id: (e.id || e.name)?.toLowerCase().replace(/[^a-z0-9]/g, "-") ?? h(),
8367
- name: e.name,
8368
- on: {
8369
- provider: Object.keys(e.on || {})[0] || "generic",
8370
- if: e.on?.[Object.keys(e.on || {})[0]]?.if
8371
- },
8372
- concurrency: e.concurrency,
8373
- steps: e.steps
8374
- });
8401
+ for (let t of r) {
8402
+ if (typeof t.on != "object") {
8403
+ console.error(`on: not defined in ${e}! Ignoring this workflow.`);
8404
+ continue;
8405
+ }
8406
+ let r = Object.keys(t.on)[0] || "generic";
8407
+ n.push({
8408
+ id: (t.id || t.name)?.toLowerCase().replace(/[^a-z0-9]/g, "-") ?? h(),
8409
+ name: t.name,
8410
+ on: {
8411
+ provider: r,
8412
+ if: t.on[r]?.if
8413
+ },
8414
+ concurrency: t.concurrency,
8415
+ steps: t.steps,
8416
+ env: t.env
8417
+ });
8418
+ }
8375
8419
  } catch (t) {
8376
8420
  return console.error(`❌ Error parsing workflow '${e}':`, t.message), [];
8377
8421
  }
@@ -8758,7 +8802,9 @@ async function Uo(e, t, n, r, i, a) {
8758
8802
  env: { ...i.env },
8759
8803
  secrets: r.getAll(),
8760
8804
  steps: {}
8761
- }, d = [], f = !1, p = !1;
8805
+ };
8806
+ o.env && Object.assign(u.env, await Ko(o.env, u));
8807
+ let d = [], f = !1, p = !1;
8762
8808
  for (let r = 0; r < s.length; r++) {
8763
8809
  let o = s[r], c = await Wo({
8764
8810
  workerId: e,
@@ -8780,11 +8826,11 @@ async function Uo(e, t, n, r, i, a) {
8780
8826
  break;
8781
8827
  }
8782
8828
  }
8783
- f && d.length < s.length && qo(s, d.length, d);
8829
+ f && d.length < s.length && Jo(s, d.length, d);
8784
8830
  let m = p ? "cancelled" : f ? "failed" : "success";
8785
8831
  await n.finishJob(t.id, m), console.log(`[${e}] ✅ Job #${t.id} completed as: ${m}`);
8786
- let h = Jo(t, m, l, c, u.env, d, o);
8787
- await n.saveReport(t.id, h), await Yo(e, i.reporters, h);
8832
+ let h = Yo(t, m, l, c, u.env, d, o);
8833
+ await n.saveReport(t.id, h), await Xo(e, i.reporters, h);
8788
8834
  }
8789
8835
  async function Wo(e) {
8790
8836
  let { workerId: t, step: n, stepIndex: r, totalSteps: i } = e, a = n.id || `step-${r}`, o = n.name || a;
@@ -8793,7 +8839,7 @@ async function Wo(e) {
8793
8839
  stepId: a,
8794
8840
  stepName: o,
8795
8841
  evalExpr: n.eval
8796
- }) : Ko({
8842
+ }) : qo({
8797
8843
  ...e,
8798
8844
  stepId: a,
8799
8845
  stepName: o
@@ -8843,10 +8889,13 @@ async function Go(e) {
8843
8889
  };
8844
8890
  }
8845
8891
  }
8846
- async function Ko(t) {
8847
- let { workerId: n, jobId: r, step: i, stepId: a, stepName: o, executionContext: s, driver: c, queue: l, config: u } = t, d = {};
8848
- if (i.env) for (let [e, t] of Object.entries(i.env)) d[e] = String(await fn.evaluateValue(t, s));
8849
- let f = {
8892
+ async function Ko(e, t) {
8893
+ let n = {};
8894
+ if (e) for (let [r, i] of Object.entries(e)) n[r] = String(await fn.evaluateValue(i, t));
8895
+ return n;
8896
+ }
8897
+ async function qo(t) {
8898
+ let { workerId: n, jobId: r, step: i, stepId: a, stepName: o, executionContext: s, driver: c, queue: l, config: u } = t, d = await Ko(i.env, s), f = {
8850
8899
  jobId: r.toString(),
8851
8900
  stepId: a,
8852
8901
  workspacePath: `${u.storagePath}/job-${r}`,
@@ -8886,7 +8935,7 @@ async function Ko(t) {
8886
8935
  }
8887
8936
  };
8888
8937
  }
8889
- function qo(e, t, n) {
8938
+ function Jo(e, t, n) {
8890
8939
  for (let r = t; r < e.length; r++) {
8891
8940
  let t = e[r], i = t.id || `step-${r}`;
8892
8941
  n.push({
@@ -8900,7 +8949,7 @@ function qo(e, t, n) {
8900
8949
  });
8901
8950
  }
8902
8951
  }
8903
- function Jo(e, t, n, r, i, a, o) {
8952
+ function Yo(e, t, n, r, i, a, o) {
8904
8953
  return {
8905
8954
  jobId: e.id.toString(),
8906
8955
  workflowName: e.workflow_id,
@@ -8918,7 +8967,7 @@ function Jo(e, t, n, r, i, a, o) {
8918
8967
  })
8919
8968
  };
8920
8969
  }
8921
- async function Yo(e, t = [], n) {
8970
+ async function Xo(e, t = [], n) {
8922
8971
  !Array.isArray(t) || t.length === 0 || (console.log(`[${e}] 📢 Dispatching execution report to ${t.length} reporter(s)...`), await Promise.allSettled(t.map(async (t) => {
8923
8972
  try {
8924
8973
  await t.report(n);
@@ -8929,7 +8978,7 @@ async function Yo(e, t = [], n) {
8929
8978
  }
8930
8979
  //#endregion
8931
8980
  //#region src/reporters/json-file.reporter.ts
8932
- var Xo = class {
8981
+ var Zo = class {
8933
8982
  name = "json-file";
8934
8983
  outputDir;
8935
8984
  constructor(e) {
@@ -8940,7 +8989,7 @@ var Xo = class {
8940
8989
  let n = a.join(this.outputDir, `run-${t.jobId}.json`);
8941
8990
  e.writeFileSync(n, JSON.stringify(t, null, 2), "utf-8"), console.log(`📊 Execution report saved to: ${n}`);
8942
8991
  }
8943
- }, Zo = class {
8992
+ }, Qo = class {
8944
8993
  name = "slack";
8945
8994
  webhookUrl = "";
8946
8995
  token = "";
@@ -8964,7 +9013,7 @@ var Xo = class {
8964
9013
  })
8965
9014
  });
8966
9015
  }
8967
- }, Qo = null, $o = [], { values: es, positionals: ts } = l({
9016
+ }, $o = null, es = [], { values: ts, positionals: ns } = l({
8968
9017
  allowPositionals: !0,
8969
9018
  options: {
8970
9019
  config: {
@@ -8994,22 +9043,22 @@ var Xo = class {
8994
9043
  }
8995
9044
  }
8996
9045
  });
8997
- function ns() {
9046
+ function rs() {
8998
9047
  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 ");
8999
9048
  }
9000
- es.help && (ns(), process.exit(0));
9001
- async function rs() {
9049
+ ts.help && (rs(), process.exit(0));
9050
+ async function is() {
9002
9051
  let e = {
9003
- port: Number(es.port),
9004
- database: es.database,
9005
- workflows: es.workflows,
9006
- workers: es.workers ? Number(es.workers) : void 0
9007
- }, n = {}, r = c(es.config);
9052
+ port: Number(ts.port),
9053
+ database: ts.database,
9054
+ workflows: ts.workflows,
9055
+ workers: ts.workers ? Number(ts.workers) : void 0
9056
+ }, n = {}, r = c(ts.config);
9008
9057
  t(r) && i(r).isFile() && (n = (await import(r)).default || {});
9009
- let a = os(n, e);
9058
+ let a = ss(n, e);
9010
9059
  return t(a.workflows) ? (No(a.database), a) : (console.warn(`⚠️ Warning: Workflows directory '${a.workflows}' not found.`), null);
9011
9060
  }
9012
- function is(e) {
9061
+ function as(e) {
9013
9062
  console.log("🔍 Validating Workflows in:", e.workflows);
9014
9063
  let t = new So(e.workflows), n = r(e.workflows).filter((e) => e.endsWith(".yml") || e.endsWith(".yaml"));
9015
9064
  for (let e of n) {
@@ -9017,14 +9066,14 @@ function is(e) {
9017
9066
  console.log(` ✅ ${e} -> Valid! (${n.length} job matrix variant(s) generated)`);
9018
9067
  }
9019
9068
  }
9020
- async function as() {
9069
+ async function os() {
9021
9070
  let e = new Fo("./.env"), t = new Po(process.env.WORKER_NAME || "cli");
9022
9071
  return await t.init(), {
9023
9072
  secrets: e,
9024
9073
  queue: t
9025
9074
  };
9026
9075
  }
9027
- function os(e, t) {
9076
+ function ss(e, t) {
9028
9077
  let n = process.env;
9029
9078
  return {
9030
9079
  port: Number(e.port || t.port || n.PORT || 11235),
@@ -9037,29 +9086,29 @@ function os(e, t) {
9037
9086
  reporters: e.reporters ?? []
9038
9087
  };
9039
9088
  }
9040
- var ss = !1, cs = async (e) => {
9041
- if (!ss) {
9042
- ss = !0, console.log(`\n🛑 Received ${e}. Initiating graceful shutdown...`), setTimeout(() => {
9089
+ var cs = !1, ls = async (e) => {
9090
+ if (!cs) {
9091
+ cs = !0, console.log(`\n🛑 Received ${e}. Initiating graceful shutdown...`), setTimeout(() => {
9043
9092
  console.error("⚠️ Graceful shutdown timed out after 10s. Forcing exit!"), process.exit(1);
9044
9093
  }, 1e4).unref();
9045
9094
  try {
9046
- Qo && await Qo.stop(), Bo.isStopping = !0, $o.length > 0 && (console.log("⚙️ Waiting for active worker jobs to drain..."), await Promise.allSettled($o)), console.log("✨ Engine stopped cleanly. Goodbye!"), process.exit(0);
9095
+ $o && await $o.stop(), Bo.isStopping = !0, es.length > 0 && (console.log("⚙️ Waiting for active worker jobs to drain..."), await Promise.allSettled(es)), console.log("✨ Engine stopped cleanly. Goodbye!"), process.exit(0);
9047
9096
  } catch (e) {
9048
9097
  console.error("❌ Error during graceful shutdown:", e.message), process.exit(1);
9049
9098
  }
9050
9099
  }
9051
9100
  };
9052
- process.on("SIGINT", () => cs("SIGINT")), process.on("SIGTERM", () => cs("SIGTERM"));
9053
- async function ls() {
9054
- let e = ts[0] || "start", t = await rs();
9101
+ process.on("SIGINT", () => ls("SIGINT")), process.on("SIGTERM", () => ls("SIGTERM"));
9102
+ async function us() {
9103
+ let e = ns[0] || "start", t = await is();
9055
9104
  switch (t || process.exit(1), e) {
9056
9105
  case "validate":
9057
- is(t);
9106
+ as(t);
9058
9107
  break;
9059
9108
  case "start-server": {
9060
9109
  console.log("🌐 Starting Ingress Gateway...");
9061
- let { queue: e, secrets: n } = await as();
9062
- Qo = await Sn.withPort({
9110
+ let { queue: e, secrets: n } = await os();
9111
+ $o = await Sn.withPort({
9063
9112
  queue: e,
9064
9113
  secrets: n,
9065
9114
  adminToken: t.adminToken,
@@ -9070,25 +9119,25 @@ async function ls() {
9070
9119
  }
9071
9120
  case "start-workers": {
9072
9121
  console.log(`⚙️ Starting ${t.workers} Worker Loop(s)...`);
9073
- let { queue: e, secrets: n } = await as();
9074
- $o = Vo(t.workers, e, n, t);
9122
+ let { queue: e, secrets: n } = await os();
9123
+ es = Vo(t.workers, e, n, t);
9075
9124
  break;
9076
9125
  }
9077
9126
  case "start": {
9078
9127
  console.log("🚀 Starting Full Runner Engine (Ingress + Workers)...");
9079
- let e = await wo.from(t.workflows), { queue: n, secrets: r } = await as();
9080
- Qo = await Sn.withPort({
9128
+ let e = await wo.from(t.workflows), { queue: n, secrets: r } = await os();
9129
+ $o = await Sn.withPort({
9081
9130
  queue: n,
9082
9131
  secrets: r,
9083
9132
  adminToken: t.adminToken,
9084
9133
  workflows: e,
9085
9134
  port: t.port
9086
- }), $o = Vo(t.workers, n, r, t);
9135
+ }), es = Vo(t.workers, n, r, t);
9087
9136
  break;
9088
9137
  }
9089
- default: console.error(`❌ Unknown command: '${e}'`), ns(), process.exit(1);
9138
+ default: console.error(`❌ Unknown command: '${e}'`), rs(), process.exit(1);
9090
9139
  }
9091
9140
  }
9092
- ls().catch(console.error);
9141
+ us().catch(console.error);
9093
9142
  //#endregion
9094
- export { xn as HtmlReporter, Xo as JsonFileReporter, Zo as SlackReporter };
9143
+ export { xn as HtmlReporter, Zo as JsonFileReporter, Qo as SlackReporter };
@@ -1 +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"}
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;CAoChE"}
@@ -12,7 +12,7 @@ export declare class SafeExpressionEvaluator {
12
12
  * Strictly parses code as a JavaScript expression and coerces result to boolean.
13
13
  * Throws an explicit AST Parse Error on invalid syntax (fails fast and loud).
14
14
  */
15
- static evaluateCondition(code: string, context?: Record<string, any>): Promise<boolean>;
15
+ static evaluateCondition(code: string | string[], context?: Record<string, any>): Promise<boolean>;
16
16
  /**
17
17
  * Evaluates direct JS code (Used for `eval:` steps or internal expression resolution).
18
18
  */
@@ -1 +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"}
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,GAAG,MAAM,EAAE,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAgB5G;;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/server.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { WebhookPreprocessor, WebhookServerOptions } from './types.js';
1
+ import type { WebhookPreprocessor, WebhookServerOptions } from './types.js';
2
2
  export declare class WebhookServer {
3
3
  private server;
4
4
  private preprocessors;
@@ -16,6 +16,9 @@ export declare class WebhookServer {
16
16
  * Processes incoming HTTP webhooks
17
17
  */
18
18
  private handleWebhook;
19
+ private readRequest;
20
+ private preprocess;
21
+ private matchWorkflows;
19
22
  /**
20
23
  * Handles Zero-Downtime Secret Reload
21
24
  */
@@ -1 +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,qBA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YACW,eAAe;IA2E7B;;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
@@ -69,6 +69,7 @@ export interface WorkflowDefinition {
69
69
  cancelInProgress?: boolean;
70
70
  };
71
71
  steps: WorkflowStep[];
72
+ env?: Record<string, string>;
72
73
  }
73
74
  export interface WebhookServerOptions {
74
75
  queue: QueueManager;
@@ -91,6 +92,7 @@ export interface JobPayload {
91
92
  workflowId: string;
92
93
  steps: WorkflowStep[];
93
94
  inputs: WorkflowInputs;
95
+ env?: Record<string, string>;
94
96
  }
95
97
  export interface MatrixStrategy {
96
98
  matrix?: Record<string, (string | number | boolean)[]>;
@@ -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,CAA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E,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"}
@@ -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,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"}
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,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.3.0",
3
+ "version": "1.5.0",
4
4
  "description": "CLI entry point for the on plugin ecosystem.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.30.3",