@cloud-cli/on 1.7.7 → 1.7.9

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
@@ -4470,7 +4470,7 @@ var pi = class {
4470
4470
  }
4471
4471
  async restartJob(e) {
4472
4472
  let t = await this.getJob(e);
4473
- if (t) return t.status === "running" && await S.run("UPDATE jobs SET status = 'cancelled', finished_at = CURRENT_TIMESTAMP WHERE id = ?;", [e]), (await S.get("INSERT INTO jobs (parentId, workflow_id, concurrency_key, payload) (SELECT id, workflow_id, concurrency_key, payload FROM jobs WHERE id = ?) RETURNING *", [e])).id;
4473
+ if (t) return t.status === "running" && await S.run("UPDATE jobs SET status = 'cancelled', finished_at = CURRENT_TIMESTAMP WHERE id = ?;", [e]), (await S.get("INSERT INTO jobs (parentId, workflow_id, concurrency_key, payload) SELECT id, workflow_id, concurrency_key, payload FROM jobs WHERE id = ? RETURNING *", [e])).id;
4474
4474
  }
4475
4475
  async isCancelled(e) {
4476
4476
  return (await S.get("SELECT status FROM jobs WHERE id = ?;", [+e]))?.status === "cancelled";
@@ -8367,8 +8367,9 @@ var Io, Lo, Ro, zo = class {
8367
8367
  <a href="/runs" class="text-xs text-indigo-400 hover:underline mb-1 inline-block">← Back to Dashboard</a>
8368
8368
  <h1 class="text-2xl font-bold text-white flex items-center gap-3">
8369
8369
  ${e.workflowName}
8370
- <span class="text-sm font-mono text-gray-500">#${e.jobId}</span>
8371
- ${e.parentId ? ` -> <a href="/runs/${e.parentId}" class="text-sm font-mono text-gray-500">#${e.parentId}</a>` : ""}
8370
+ <span class="text-sm font-mono text-gray-500">#${e.jobId}
8371
+ ${e.parentId ? ` -> <a href="/runs/${e.parentId}">#${e.parentId}</a>` : ""}
8372
+ </span>
8372
8373
  </h1>
8373
8374
  <p class="text-xs text-gray-400 mt-1">Started ${e.startedAt} • Finished in ${e.durationMs}ms</p>
8374
8375
  </div>
@@ -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;CAmG1D"}
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;CAoG1D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/on",
3
- "version": "1.7.7",
3
+ "version": "1.7.9",
4
4
  "description": "CLI entry point for the on plugin ecosystem.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.30.3",