@cloud-cli/on 1.5.1 → 1.5.2
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
|
@@ -3403,12 +3403,13 @@ var dn = {
|
|
|
3403
3403
|
r = u.timingSafeEqual(Buffer.from(a), Buffer.from(e));
|
|
3404
3404
|
}
|
|
3405
3405
|
if (r) {
|
|
3406
|
-
let n = JSON.parse(t.toString("utf-8")), r = e["x-github-event"] || "unknown", a =
|
|
3406
|
+
let n = JSON.parse(t.toString("utf-8")), r = e["x-github-event"] || "unknown", a = n.ref || "", o = a.includes("refs/heads") ? a.replace("refs/heads/", "") : "", s = a.includes("refs/tags") ? a.replace("refs/tags/", "") : "", [c, l] = (n.repository?.full_name || "").split("/");
|
|
3407
3407
|
i = {
|
|
3408
3408
|
event: r,
|
|
3409
|
-
branch:
|
|
3410
|
-
|
|
3411
|
-
|
|
3409
|
+
branch: o,
|
|
3410
|
+
tag: s,
|
|
3411
|
+
owner: c,
|
|
3412
|
+
repo: l,
|
|
3412
3413
|
clone_url: n.repository?.clone_url,
|
|
3413
3414
|
commit_sha: n.after || n.head_commit?.id,
|
|
3414
3415
|
author: n.pusher?.name || n.sender?.login,
|
|
@@ -3802,23 +3803,21 @@ var vn, yn, bn, xn = class {
|
|
|
3802
3803
|
generateHtml(e) {
|
|
3803
3804
|
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) => {
|
|
3804
3805
|
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";
|
|
3805
|
-
return
|
|
3806
|
-
|
|
3807
|
-
<div class="flex items-center justify-between p-2 bg-gray-800/40 border-b border-gray-800">
|
|
3806
|
+
return `<details class="border border-b-0 border-gray-800 bg-gray-900/50 text-sm" open>
|
|
3807
|
+
<summary class="flex items-center justify-between p-2 bg-gray-800/40 border-b border-gray-800 cursor-pointer">
|
|
3808
3808
|
<div class="flex items-center gap-3">
|
|
3809
|
-
<span class="
|
|
3810
|
-
<h3 class="font-semibold text-gray-200
|
|
3811
|
-
<span class="px-2.5 py-0.5 rounded-full
|
|
3809
|
+
<span class="font-mono text-gray-500">#${t + 1} ${e.exitCode === 0 ? "" : "(" + e.exitCode + ")"}</span>
|
|
3810
|
+
<h3 class="font-semibold text-gray-200">${e.name}</h3>
|
|
3811
|
+
<span class="px-2.5 py-0.5 rounded-full font-medium ${i}">
|
|
3812
3812
|
${e.status.toUpperCase()}
|
|
3813
3813
|
</span>
|
|
3814
3814
|
</div>
|
|
3815
|
-
<div class="
|
|
3816
|
-
</
|
|
3817
|
-
<div class="p-4 bg-gray-950 font-mono text-
|
|
3815
|
+
<div class="font-mono text-gray-400">${e.durationMs}ms</div>
|
|
3816
|
+
</summary>
|
|
3817
|
+
<div class="p-4 bg-gray-950 font-mono text-gray-300 leading-relaxed overflow-auto w-full">
|
|
3818
3818
|
<pre class="whitespace-pre-wrap">${r}</pre>
|
|
3819
3819
|
</div>
|
|
3820
|
-
</
|
|
3821
|
-
`;
|
|
3820
|
+
</details>`;
|
|
3822
3821
|
}).join("");
|
|
3823
3822
|
return `<!DOCTYPE html>
|
|
3824
3823
|
<html lang="en" class="dark">
|
|
@@ -3826,12 +3825,11 @@ var vn, yn, bn, xn = class {
|
|
|
3826
3825
|
<meta charset="UTF-8">
|
|
3827
3826
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
3828
3827
|
<title>Run #${e.jobId} - ${e.workflowName}</title>
|
|
3829
|
-
<script
|
|
3828
|
+
<script type="importmap"> {"imports": { "@li3/": "https://cdn.li3.dev/@li3/" }}<\/script>
|
|
3830
3829
|
</head>
|
|
3831
3830
|
<body class="bg-gray-950 text-gray-100 min-h-screen p-6 font-sans">
|
|
3832
3831
|
<div class="max-w-5xl mx-auto space-y-4">
|
|
3833
3832
|
|
|
3834
|
-
<!-- Top Header -->
|
|
3835
3833
|
<div class="flex items-center justify-between border-b border-gray-800 pb-6">
|
|
3836
3834
|
<div>
|
|
3837
3835
|
<a href="/runs" class="text-xs text-indigo-400 hover:underline mb-1 inline-block">← Back to Dashboard</a>
|
|
@@ -3846,19 +3844,19 @@ var vn, yn, bn, xn = class {
|
|
|
3846
3844
|
</span>
|
|
3847
3845
|
</div>
|
|
3848
3846
|
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
<h2 class="text-lg font-semibold text-white mb-4">Execution Steps</h2>
|
|
3847
|
+
<div class="rounded overflow-hidden border-b border-gray-800">
|
|
3848
|
+
<h2 class="sr-only">Execution Steps</h2>
|
|
3852
3849
|
${n}
|
|
3853
3850
|
</div>
|
|
3854
3851
|
|
|
3855
|
-
<!-- Inputs Overview -->
|
|
3856
3852
|
<div class="bg-gray-900 border border-gray-800 rounded-xl p-4 overflow-auto max-h-[400px]">
|
|
3857
3853
|
<h2 class="text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2">Trigger Inputs</h2>
|
|
3858
3854
|
<pre class="font-mono text-xs text-indigo-300 bg-gray-950 p-3 rounded-lg overflow-x-auto">${JSON.stringify(e.inputs, null, 2)}</pre>
|
|
3859
3855
|
</div>
|
|
3860
3856
|
|
|
3861
3857
|
</div>
|
|
3858
|
+
<script type="module">import "@li3/web"<\/script>
|
|
3859
|
+
<script defer async src="https://cdn.tailwindcss.com"><\/script>
|
|
3862
3860
|
</body>
|
|
3863
3861
|
</html>`;
|
|
3864
3862
|
}
|
|
@@ -1 +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;
|
|
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;CAyCpG"}
|
|
@@ -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;
|
|
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;CAiF1D"}
|