@animaapp/anima-sdk-react 0.2.3 → 0.2.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@animaapp/anima-sdk-react",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "description": "Anima's JavaScript utilities library",
6
6
  "author": "Anima App, Inc.",
@@ -164,6 +164,7 @@ export const useAnimaCodegen = ({
164
164
 
165
165
  updateStatus((draft) => {
166
166
  draft.tasks.codeGeneration.progress = message.payload.progress;
167
+ draft.tasks.codeGeneration.status = "running";
167
168
  });
168
169
  });
169
170
 
@@ -220,9 +221,7 @@ export const useAnimaCodegen = ({
220
221
  });
221
222
 
222
223
  es.addEventListener("done", (event) => {
223
- const message = JSON.parse(
224
- event.data
225
- ) as StreamMessageByType<"done">;
224
+ const message = JSON.parse(event.data) as StreamMessageByType<"done">;
226
225
  result.tokenUsage = message.payload.tokenUsage;
227
226
 
228
227
  updateStatus((draft) => {