@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.mjs
CHANGED
|
@@ -517,6 +517,11 @@ function taskStatus(state) {
|
|
|
517
517
|
return artifactUrls(state).length > 0 ? "succeeded" : "failed";
|
|
518
518
|
}
|
|
519
519
|
if (words.length > 0) return "";
|
|
520
|
+
if (response.success === false) {
|
|
521
|
+
const error = response.error;
|
|
522
|
+
const structured = !!error && typeof error === "object" && !!error.code;
|
|
523
|
+
if (artifactUrls(state).length > 0 || structured) return "failed";
|
|
524
|
+
}
|
|
520
525
|
const finished = response.finished_at !== void 0 && response.finished_at !== null || state.finished_at !== void 0 && state.finished_at !== null;
|
|
521
526
|
if (finished) {
|
|
522
527
|
if (response.success === true) return "succeeded";
|