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}): ${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
@@ -8,7 +8,7 @@ import {
8
8
  requireExactConfirmation,
9
9
  resolveProjectContext,
10
10
  serializeToYaml
11
- } from "./chunk-RS3IB33B.js";
11
+ } from "./chunk-AN3XZFIH.js";
12
12
  import "./chunk-IWKP55ZB.js";
13
13
  import "./chunk-WBBDQZZI.js";
14
14
  export {
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ import {
39
39
  renderPlanList,
40
40
  renderSupportInfo,
41
41
  serializeToYaml
42
- } from "./chunk-RS3IB33B.js";
42
+ } from "./chunk-AN3XZFIH.js";
43
43
  import "./chunk-IWKP55ZB.js";
44
44
  import "./chunk-WBBDQZZI.js";
45
45
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmates",
3
- "version": "0.17.0-alpha.5",
3
+ "version": "0.17.0-alpha.6",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",