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})
|
|
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
package/dist/index.js
CHANGED