@tablation/crew 0.159.0 → 0.159.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/cli.js +6 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -22116,7 +22116,7 @@ async function confirm(o, expected, ci) {
|
|
|
22116
22116
|
const r = await hook(o, "released");
|
|
22117
22117
|
const live2 = r?.output.trim().split("\n").filter(Boolean).pop() ?? "";
|
|
22118
22118
|
const hit = match === "commit" ? live2.startsWith(expected.slice(0, 7)) || expected.startsWith(live2.slice(0, 7)) : live2 === expected;
|
|
22119
|
-
if (ci) await sweepCi(o, ci);
|
|
22119
|
+
if (ci) await sweepCi(o, ci, Boolean(live2 && hit));
|
|
22120
22120
|
if (live2 && hit) {
|
|
22121
22121
|
o.emit.emit(`confirmed live: ${live2.slice(0, 12)}`);
|
|
22122
22122
|
return true;
|
|
@@ -22145,7 +22145,7 @@ function newCiWatch(o, sha, tag, version) {
|
|
|
22145
22145
|
}
|
|
22146
22146
|
var ciKeyPrefix = (o) => `ci_run_failed:${o.scope ?? "release"}/`;
|
|
22147
22147
|
var ciKey = (o, version) => `${ciKeyPrefix(o)}${version}`;
|
|
22148
|
-
async function sweepCi(o, w) {
|
|
22148
|
+
async function sweepCi(o, w, live2) {
|
|
22149
22149
|
if (w.off) return;
|
|
22150
22150
|
const got = await w.provider.runs(w.q);
|
|
22151
22151
|
if (!got.ok) {
|
|
@@ -22168,11 +22168,13 @@ async function sweepCi(o, w) {
|
|
|
22168
22168
|
}
|
|
22169
22169
|
w.failures = w.failures.filter((f) => failed.some((r) => r.id === f.run.id));
|
|
22170
22170
|
if (o.attention) {
|
|
22171
|
+
const url = w.failures.find((f) => f.run.url)?.run.url;
|
|
22171
22172
|
await o.attention.raise({
|
|
22172
22173
|
kind: "ci_run_failed",
|
|
22173
22174
|
key: ciKey(o, w.version),
|
|
22174
22175
|
message: `${o.scope ?? "release"}: CI failed for ${w.version} \u2014 ${w.failures.map(describeCiFailure).join("; ")}`,
|
|
22175
|
-
since: (/* @__PURE__ */ new Date()).toISOString()
|
|
22176
|
+
since: (/* @__PURE__ */ new Date()).toISOString(),
|
|
22177
|
+
ci: { ...url ? { url } : {}, blocking: !live2, repo: o.scope ?? "release", version: w.version }
|
|
22176
22178
|
});
|
|
22177
22179
|
}
|
|
22178
22180
|
}
|
|
@@ -28724,7 +28726,7 @@ import { dirname as dirOf2, resolve as resolvePath } from "path";
|
|
|
28724
28726
|
import { existsSync as existsSync56, readdirSync as readdirSync18, statSync as statSync17 } from "fs";
|
|
28725
28727
|
import { join as join60 } from "path";
|
|
28726
28728
|
function builtVersion() {
|
|
28727
|
-
return true ? "0.159.
|
|
28729
|
+
return true ? "0.159.1" : null;
|
|
28728
28730
|
}
|
|
28729
28731
|
var REBUILD_HINT = "rebuild with npm run build";
|
|
28730
28732
|
function newestMtime(path) {
|
package/package.json
CHANGED