@cloud-cli/on 1.2.11 → 1.2.13

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.
@@ -1 +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"}
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;CAuJ9D"}
package/dist/on.js CHANGED
@@ -3815,7 +3815,7 @@ var wn, Tn, En, Dn = class {
3815
3815
  <div class="border border-gray-800 rounded-xl overflow-hidden bg-gray-900/50 mb-4">
3816
3816
  <div class="flex items-center justify-between p-4 bg-gray-800/40 border-b border-gray-800">
3817
3817
  <div class="flex items-center gap-3">
3818
- <span class="text-xs font-mono text-gray-500">#${n + 1}</span>
3818
+ <span class="text-xs font-mono text-gray-500">#${n + 1} ${t.exitCode === 0 ? "" : "(" + t.exitCode + ")"}</span>
3819
3819
  <h3 class="font-semibold text-gray-200">${t.name}</h3>
3820
3820
  <span class="px-2.5 py-0.5 rounded-full text-xs font-medium ${a}">
3821
3821
  ${t.status.toUpperCase()}
@@ -3855,18 +3855,18 @@ var wn, Tn, En, Dn = class {
3855
3855
  </span>
3856
3856
  </div>
3857
3857
 
3858
- <!-- Inputs Overview -->
3859
- <div class="bg-gray-900 border border-gray-800 rounded-xl p-4">
3860
- <h2 class="text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2">Trigger Inputs</h2>
3861
- <pre class="font-mono text-xs text-indigo-300 bg-gray-950 p-3 rounded-lg overflow-x-auto">${JSON.stringify(t.inputs, null, 2)}</pre>
3862
- </div>
3863
-
3864
3858
  <!-- Steps Timeline -->
3865
3859
  <div>
3866
3860
  <h2 class="text-lg font-semibold text-white mb-4">Execution Steps</h2>
3867
3861
  ${r}
3868
3862
  </div>
3869
3863
 
3864
+ <!-- Inputs Overview -->
3865
+ <div class="bg-gray-900 border border-gray-800 rounded-xl p-4">
3866
+ <h2 class="text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2">Trigger Inputs</h2>
3867
+ <pre class="font-mono text-xs text-indigo-300 bg-gray-950 p-3 rounded-lg overflow-x-auto">${JSON.stringify(t.inputs, null, 2)}</pre>
3868
+ </div>
3869
+
3870
3870
  </div>
3871
3871
  </body>
3872
3872
  </html>`;
@@ -8711,7 +8711,7 @@ var Vo = class {
8711
8711
  async execute(t) {
8712
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");
8713
8713
  try {
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");
8714
+ e.mkdirSync(i, { recursive: !0 }), e.mkdirSync(s, { recursive: !0 }), e.chmodSync(s, 511), n = e.openSync(o, "a");
8715
8715
  } catch (e) {
8716
8716
  return {
8717
8717
  done: Promise.resolve({
@@ -8733,7 +8733,7 @@ var Vo = class {
8733
8733
  `--working-directory=${s}`
8734
8734
  ];
8735
8735
  if (t.env) for (let [e, n] of Object.entries(t.env)) l.push(`--setenv=${e}=${n}`);
8736
- if (t.timeoutMs) {
8736
+ if (l.push(`--setenv=PATH=${t.env?.PATH || process.env.PATH}`), t.timeoutMs) {
8737
8737
  let e = Math.ceil(t.timeoutMs / 1e3);
8738
8738
  l.push(`--property=RuntimeMaxSec=${e}`);
8739
8739
  }
@@ -8754,6 +8754,7 @@ var Vo = class {
8754
8754
  t.command
8755
8755
  ] : [
8756
8756
  process.env.SHELL || "sh",
8757
+ "-e",
8757
8758
  "-c",
8758
8759
  t.command
8759
8760
  ], process.env.DEBUG && console.log("$ systemd-run", [
@@ -8830,7 +8831,7 @@ var Vo = class {
8830
8831
  async execute(t) {
8831
8832
  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");
8832
8833
  try {
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");
8834
+ e.mkdirSync(i, { recursive: !0 }), e.mkdirSync(s, { recursive: !0 }), e.chmodSync(s, 511), n = e.openSync(o, "a");
8834
8835
  } catch (e) {
8835
8836
  return {
8836
8837
  done: Promise.resolve({
@@ -8856,7 +8857,11 @@ var Vo = class {
8856
8857
  t.image,
8857
8858
  "-c",
8858
8859
  t.command
8859
- ]) : (c = process.env.SHELL || "sh", l = ["-c", t.command]), process.env.DEBUG && console.log("$ " + c, l.join(" "));
8860
+ ]) : (c = process.env.SHELL || "sh", l = [
8861
+ "-e",
8862
+ "-c",
8863
+ t.command
8864
+ ]), process.env.DEBUG && console.log("$ " + c, l.join(" "));
8860
8865
  let u;
8861
8866
  try {
8862
8867
  u = _(c, l, {
@@ -1 +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"}
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;CA0F1D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/on",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
4
4
  "description": "CLI entry point for the on plugin ecosystem.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.30.3",