openmates 0.17.0-alpha.4 → 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.
@@ -13940,6 +13940,7 @@ Required: ${schema.required.join(", ")}`
13940
13940
  try {
13941
13941
  const baseSyncPayload = {
13942
13942
  ...teamId ? { team_id: teamId } : {},
13943
+ context_epoch: 0,
13943
13944
  client_chat_versions: clientChatVersions,
13944
13945
  client_chat_ids: clientChatIds,
13945
13946
  client_embed_ids: clientEmbedIds
@@ -30509,7 +30510,7 @@ function formatCodeRunArtifactLines(value) {
30509
30510
  const sizeBytes = numberValue2(artifact.size_bytes);
30510
30511
  const size = sizeBytes === null ? "unknown size" : `${sizeBytes} bytes`;
30511
30512
  const downloadUrl = stringValue(artifact.download_url);
30512
- return downloadUrl ? `- ${path2} (${mimeType}, ${size}): ${downloadUrl}` : `- ${path2} (${mimeType}, ${size})`;
30513
+ return downloadUrl ? `- ${path2} (${mimeType}, ${size}; signed download available via --json)` : `- ${path2} (${mimeType}, ${size})`;
30513
30514
  });
30514
30515
  }
30515
30516
  function formatCodeRunSkippedArtifactLines(value) {
@@ -78776,6 +78777,11 @@ async function handleCodeRun(client, flags, apiKey) {
78776
78777
  const finalOutput = formatCodeRunFinalStatusOutput(finalStatus, { includeOutput: !usedStream });
78777
78778
  if (finalOutput) process.stdout.write(finalOutput);
78778
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
+ }
78779
78785
  }
78780
78786
  async function streamCodeRunToTerminal(url, jsonMode) {
78781
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-TNSNIRLS.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-TNSNIRLS.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.4",
3
+ "version": "0.17.0-alpha.6",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",