@cloud-cli/on 1.6.6 → 1.7.1

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
@@ -8355,26 +8355,32 @@ var To = class e {
8355
8355
  failed: "bg-rose-500/10 text-rose-400",
8356
8356
  running: "bg-indigo-500/10 text-indigo-400 animate-pulse",
8357
8357
  _: "bg-gray-500/10 text-gray-400"
8358
- }, r = t.map((e) => {
8359
- let t = n[e.status] || n._;
8360
- return `
8361
- <tr class="border-b border-gray-800 hover:bg-gray-900/50 transition">
8362
- <td class="py-3 px-4 font-mono text-indigo-400"><a href="/runs/${e.id}" class="hover:underline">#${e.id}</a></td>
8363
- <td class="py-3 px-4 font-medium text-white">${e.workflow_id}</td>
8364
- <td class="py-3 px-4">
8365
- <span class="px-2.5 py-0.5 rounded-full text-xs font-semibold ${t}">${e.status?.toUpperCase() ?? "?"}</span>
8366
- </td>
8367
- <td class="py-3 px-4 text-xs font-mono text-gray-400">${e.worker_id || "-"}</td>
8368
- <td class="py-3 px-4 text-xs text-gray-400">${e.created_at}</td>
8369
- <td class="py-3 px-4 text-right">
8370
- <a href="/runs/${e.id}" class="text-xs bg-gray-800 hover:bg-gray-700 text-gray-200 px-3 py-1 rounded border border-gray-700">View Trace →</a>
8371
- </td>
8372
- </tr>
8373
- `;
8374
- }).join(""), i = `<!DOCTYPE html>
8358
+ }, r = (e) => {
8359
+ switch (e) {
8360
+ case "success": return "bg-emerald-400";
8361
+ case "failed": return "bg-rose-400";
8362
+ case "running": return "bg-indigo-400 animate-pulse";
8363
+ default: return "bg-gray-500";
8364
+ }
8365
+ }, i = t.map((e) => `
8366
+ <div class="py-3 px-4 block md:hidden bg-gray-900/60">
8367
+ <div class="flex items-center justify-between gap-2 mb-1">
8368
+ <div class="flex items-center gap-2 min-w-0">
8369
+ <span class="w-2.5 h-2.5 rounded-full ${r(e.status)} flex-shrink-0"></span>
8370
+ <span class="font-medium text-white truncate">${e.workflow_id}</span>
8371
+ </div>
8372
+ <a href="/runs/${e.id}" class="shrink-0 text-xs bg-gray-800 hover:bg-gray-700 text-gray-300 px-2.5 py-1 rounded border border-gray-700 whitespace-nowrap">Trace</a>
8373
+ </div>
8374
+ <div class="flex items-center gap-2 text-xs text-gray-400 pl-[18px]">
8375
+ #${e.id}
8376
+ </div>
8377
+ </div>
8378
+ `).join(""), a = `<!doctype html>
8375
8379
  <html lang="en" class="dark">
8376
- <head>
8377
- <meta charset="UTF-8">
8380
+ <head>
8381
+ <meta charset="utf-8" />
8382
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
8383
+ <meta name="viewport" content="width=device-width,initial-scale=1.0" />
8378
8384
  <meta http-equiv="refresh" content="10"> <!-- Auto-refreshes every 10s -->
8379
8385
  <title>Workflow Engine Dashboard</title>
8380
8386
  <script src="https://cdn.tailwindcss.com"><\/script>
@@ -8391,25 +8397,43 @@ var To = class e {
8391
8397
  </span>
8392
8398
  </div>
8393
8399
 
8394
- <div class="bg-gray-900 border border-gray-800 rounded-xl overflow-hidden">
8400
+ <div class="bg-gray-900 border border-gray-800 rounded-xl overflow-hidden hidden md:block">
8395
8401
  <table class="w-full text-left text-sm">
8396
8402
  <thead class="bg-gray-800/50 text-gray-400 text-xs uppercase font-mono border-b border-gray-800">
8397
8403
  <tr>
8398
8404
  <th class="py-3 px-4">Job ID</th>
8399
8405
  <th class="py-3 px-4">Workflow</th>
8400
8406
  <th class="py-3 px-4">Status</th>
8401
- <th class="py-3 px-4">Worker</th>
8402
- <th class="py-3 px-4">Created At</th>
8403
- <th class="py-3 px-4 text-right">Action</th>
8407
+ <th class="py-3 px-4 hidden xl:table-cell">Worker</th>
8408
+ <th class="py-3 px-4 hidden lg:table-cell">Created At</th>
8409
+ <th class="py-3 px-4 text-right hidden md:table-cell">Action</th>
8404
8410
  </tr>
8405
8411
  </thead>
8406
- <tbody>${r.length ? r : "<tr><td colspan=\"6\" class=\"p-6 text-center text-gray-500\">No jobs recorded yet.</td></tr>"}</tbody>
8412
+ <tbody>${t.map((e) => {
8413
+ let t = n[e.status] || n._;
8414
+ return `
8415
+ <tr class="border-b border-gray-800 hover:bg-gray-900/50 transition">
8416
+ <td class="py-3 px-4 font-mono text-indigo-400"><a href="/runs/${e.id}" class="hover:underline">#${e.id}</a></td>
8417
+ <td class="py-3 px-4 font-medium text-white">${e.workflow_id}</td>
8418
+ <td class="py-3 px-4">
8419
+ <span class="px-2.5 py-0.5 rounded-full text-xs font-semibold ${t}">${e.status?.toUpperCase() ?? "?"}</span>
8420
+ </td>
8421
+ <td class="py-3 px-4 hidden xl:table-cell text-xs font-mono text-gray-400">${e.worker_id || "-"}</td>
8422
+ <td class="py-3 px-4 hidden lg:table-cell text-xs text-gray-400">${e.created_at}</td>
8423
+ <td class="py-3 px-4 text-right whitespace-nowrap hidden md:table-cell">
8424
+ <a href="/runs/${e.id}" class="text-xs bg-gray-800 hover:bg-gray-700 text-gray-200 px-3 py-1 rounded border border-gray-700">View Trace →</a>
8425
+ </td>
8426
+ </tr>
8427
+ `;
8428
+ }).join("")}</tbody>
8407
8429
  </table>
8408
8430
  </div>
8431
+
8432
+ <div class="md:hidden divide-y divide-gray-800">${i || "<div class=\"p-6 text-center text-gray-500\">No jobs recorded yet.</div>"}</div>
8409
8433
  </div>
8410
8434
  </body>
8411
- </html>`, a = this.secrets.redactText(i);
8412
- e.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), e.end(a);
8435
+ </html>`, o = this.secrets.redactText(a);
8436
+ e.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), e.end(o);
8413
8437
  }
8414
8438
  async renderRunDetails(e, t) {
8415
8439
  let n = await this.queue.getJob(e);
@@ -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,CA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YACW,kBAAkB;IAehC;;OAEG;YACW,eAAe;IA0G7B;;OAEG;YAGW,gBAAgB;IA2B9B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAStC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/on",
3
- "version": "1.6.6",
3
+ "version": "1.7.1",
4
4
  "description": "CLI entry point for the on plugin ecosystem.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.30.3",