@animaapp/anima-sdk-react 0.2.3 → 0.2.4
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/.turbo/turbo-build.log +6 -6
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/useAnimaCodegen.ts +2 -3
package/dist/index.js
CHANGED
|
@@ -935,7 +935,7 @@ const rs = {
|
|
|
935
935
|
l.data
|
|
936
936
|
);
|
|
937
937
|
v.payload.status === "success" && (b.files = v.payload.files), r((m) => {
|
|
938
|
-
m.tasks.codeGeneration.progress = v.payload.progress;
|
|
938
|
+
m.tasks.codeGeneration.progress = v.payload.progress, m.tasks.codeGeneration.status = "running";
|
|
939
939
|
});
|
|
940
940
|
}), o.addEventListener("codegen_completed", () => {
|
|
941
941
|
r((l) => {
|
|
@@ -969,9 +969,7 @@ const rs = {
|
|
|
969
969
|
error: new Error("HTTP error: " + l.message)
|
|
970
970
|
});
|
|
971
971
|
}), o.addEventListener("done", (l) => {
|
|
972
|
-
const v = JSON.parse(
|
|
973
|
-
l.data
|
|
974
|
-
);
|
|
972
|
+
const v = JSON.parse(l.data);
|
|
975
973
|
b.tokenUsage = v.payload.tokenUsage, r((m) => {
|
|
976
974
|
m.status = "success", m.result = b;
|
|
977
975
|
}), g({ result: b, error: null });
|