openmates 0.17.0-alpha.5 → 0.17.0-alpha.6
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.
|
@@ -30510,7 +30510,7 @@ function formatCodeRunArtifactLines(value) {
|
|
|
30510
30510
|
const sizeBytes = numberValue2(artifact.size_bytes);
|
|
30511
30511
|
const size = sizeBytes === null ? "unknown size" : `${sizeBytes} bytes`;
|
|
30512
30512
|
const downloadUrl = stringValue(artifact.download_url);
|
|
30513
|
-
return downloadUrl ? `- ${path2} (${mimeType}, ${size})
|
|
30513
|
+
return downloadUrl ? `- ${path2} (${mimeType}, ${size}; signed download available via --json)` : `- ${path2} (${mimeType}, ${size})`;
|
|
30514
30514
|
});
|
|
30515
30515
|
}
|
|
30516
30516
|
function formatCodeRunSkippedArtifactLines(value) {
|
|
@@ -78777,6 +78777,11 @@ async function handleCodeRun(client, flags, apiKey) {
|
|
|
78777
78777
|
const finalOutput = formatCodeRunFinalStatusOutput(finalStatus, { includeOutput: !usedStream });
|
|
78778
78778
|
if (finalOutput) process.stdout.write(finalOutput);
|
|
78779
78779
|
}
|
|
78780
|
+
const finalExitCode = typeof finalStatus.exit_code === "number" ? finalStatus.exit_code : null;
|
|
78781
|
+
const finalState = typeof finalStatus.status === "string" ? finalStatus.status : "unknown";
|
|
78782
|
+
if (finalState !== "finished" || finalExitCode !== 0) {
|
|
78783
|
+
throw new Error(`Code Run ${finalState} with exit code ${finalExitCode ?? "unknown"}.`);
|
|
78784
|
+
}
|
|
78780
78785
|
}
|
|
78781
78786
|
async function streamCodeRunToTerminal(url, jsonMode) {
|
|
78782
78787
|
return await new Promise((resolve10, reject) => {
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED