nexrall-code 0.5.202 → 0.5.203
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/index.js +9 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -79778,11 +79778,14 @@ function openUrl(url) {
|
|
|
79778
79778
|
} catch {
|
|
79779
79779
|
}
|
|
79780
79780
|
}
|
|
79781
|
+
function fmtCostUsd(cost) {
|
|
79782
|
+
return `$${cost < 0.01 ? cost.toFixed(4) : cost.toFixed(2)}`;
|
|
79783
|
+
}
|
|
79781
79784
|
function deliverableBits(s2) {
|
|
79782
79785
|
const bits = [
|
|
79783
79786
|
s2.branch ? `branch ${s2.branch}` : "",
|
|
79784
79787
|
s2.prUrl ?? "",
|
|
79785
|
-
s2.costUsd != null ?
|
|
79788
|
+
s2.costUsd != null ? fmtCostUsd(s2.costUsd) : ""
|
|
79786
79789
|
].filter(Boolean);
|
|
79787
79790
|
return bits.join(" \xB7 ");
|
|
79788
79791
|
}
|
|
@@ -79848,10 +79851,13 @@ async function cloudLogsCommand(id, opts) {
|
|
|
79848
79851
|
console.log(JSON.stringify(r2, null, 2));
|
|
79849
79852
|
return;
|
|
79850
79853
|
}
|
|
79854
|
+
if (r2.note) {
|
|
79855
|
+
console.log(paint.dim(` ${r2.note}`));
|
|
79856
|
+
}
|
|
79851
79857
|
if (r2.log) {
|
|
79852
79858
|
console.log(r2.log.endsWith("\n") ? r2.log.slice(0, -1) : r2.log);
|
|
79853
|
-
} else {
|
|
79854
|
-
console.log(paint.dim(
|
|
79859
|
+
} else if (!r2.note) {
|
|
79860
|
+
console.log(paint.dim(" No log available."));
|
|
79855
79861
|
}
|
|
79856
79862
|
return;
|
|
79857
79863
|
}
|