@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/.turbo/turbo-build.log +15 -13
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +164 -165
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/useAnimaCodegen.ts +2 -3
package/package.json
CHANGED
package/src/useAnimaCodegen.ts
CHANGED
|
@@ -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) => {
|