@acedatacloud/sdk 2026.727.2 → 2026.728.0
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 +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/runtime/tasks.ts +11 -0
package/dist/index.js
CHANGED
|
@@ -565,6 +565,11 @@ function taskStatus(state) {
|
|
|
565
565
|
return artifactUrls(state).length > 0 ? "succeeded" : "failed";
|
|
566
566
|
}
|
|
567
567
|
if (words.length > 0) return "";
|
|
568
|
+
if (response.success === false) {
|
|
569
|
+
const error = response.error;
|
|
570
|
+
const structured = !!error && typeof error === "object" && !!error.code;
|
|
571
|
+
if (artifactUrls(state).length > 0 || structured) return "failed";
|
|
572
|
+
}
|
|
568
573
|
const finished = response.finished_at !== void 0 && response.finished_at !== null || state.finished_at !== void 0 && state.finished_at !== null;
|
|
569
574
|
if (finished) {
|
|
570
575
|
if (response.success === true) return "succeeded";
|