@fencyai/react 0.1.109 → 0.1.110
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 +7 -8
- package/dist/types/StreamData.d.ts +2 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -212,8 +212,8 @@ const se = (e) => {
|
|
|
212
212
|
agentTaskId: e.agentTaskId,
|
|
213
213
|
progressItemId: e.progressItemId,
|
|
214
214
|
title: e.title,
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
timestamp: e.timestamp,
|
|
216
|
+
createdAt: e.createdAt,
|
|
217
217
|
response: e.response,
|
|
218
218
|
progressItemType: e.progressItemType
|
|
219
219
|
}), me = (e) => {
|
|
@@ -1082,8 +1082,8 @@ const fe = ({
|
|
|
1082
1082
|
const n = e.progressItems.map((r, f) => {
|
|
1083
1083
|
let h;
|
|
1084
1084
|
const b = e.progressItems[f + 1];
|
|
1085
|
-
if (b != null && b.
|
|
1086
|
-
const y = new Date(r.
|
|
1085
|
+
if (b != null && b.createdAt) {
|
|
1086
|
+
const y = new Date(r.createdAt).getTime(), k = new Date(b.createdAt).getTime();
|
|
1087
1087
|
h = Math.round((k - y) / 1e3);
|
|
1088
1088
|
}
|
|
1089
1089
|
const w = b != null;
|
|
@@ -1093,15 +1093,14 @@ const fe = ({
|
|
|
1093
1093
|
markdown: r.response || "",
|
|
1094
1094
|
state: r.progressItemType,
|
|
1095
1095
|
completed: w,
|
|
1096
|
-
startedAt: r.
|
|
1097
|
-
completedAt: r.completedAt,
|
|
1096
|
+
startedAt: r.createdAt,
|
|
1098
1097
|
durationSeconds: h
|
|
1099
1098
|
};
|
|
1100
1099
|
});
|
|
1101
1100
|
let d;
|
|
1102
1101
|
const l = e.progressItems[0];
|
|
1103
|
-
if (l != null && l.
|
|
1104
|
-
const r = new Date(e.triggeredAt).getTime(), f = new Date(l.
|
|
1102
|
+
if (l != null && l.createdAt) {
|
|
1103
|
+
const r = new Date(e.triggeredAt).getTime(), f = new Date(l.createdAt).getTime();
|
|
1105
1104
|
d = Math.round((f - r) / 1e3);
|
|
1106
1105
|
}
|
|
1107
1106
|
const c = {
|
|
@@ -62,8 +62,8 @@ export type AgentTaskProgressItemUpdated = {
|
|
|
62
62
|
agentTaskId: string;
|
|
63
63
|
progressItemId: string;
|
|
64
64
|
title: string;
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
timestamp: string;
|
|
66
|
+
createdAt: string;
|
|
67
67
|
response: string;
|
|
68
68
|
progressItemType: AgentTaskProgressItemType;
|
|
69
69
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fencyai/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.110",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "staklau <steinaageklaussen@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@microsoft/fetch-event-source": "^2.0.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@fencyai/js": "^0.1.
|
|
38
|
+
"@fencyai/js": "^0.1.110",
|
|
39
39
|
"@types/jest": "^29.5.11",
|
|
40
40
|
"@types/node": "^20.10.5",
|
|
41
41
|
"@types/react": "^18.2.45",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@emotion/is-prop-valid": "^1.3.0",
|
|
53
|
-
"@fencyai/js": "^0.1.
|
|
53
|
+
"@fencyai/js": "^0.1.110",
|
|
54
54
|
"@radix-ui/react-popover": "^1.1.15",
|
|
55
55
|
"motion": "^11.15.0",
|
|
56
56
|
"react": ">=16.8.0",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"optional": false
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "9836dad9a8577fb445a3a378490071c0522fbca7"
|
|
69
69
|
}
|