@agents24/node 0.5.16 → 0.5.17
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/compatibility.json +5 -5
- package/dist/bff.cjs +9 -3
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.js +9 -3
- package/dist/bff.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/compatibility.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractHash": "
|
|
2
|
+
"contractHash": "8bc171524458786bf938b66ec15fe511e9359792c9eee5f2e852f8d00920c679",
|
|
3
3
|
"contractVersion": "0.3.0",
|
|
4
4
|
"corpus": "conformance/v1/corpus.json",
|
|
5
5
|
"generatedBy": "@agents24/sdk-contract",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"reactDom": ">=19 <20"
|
|
16
16
|
},
|
|
17
17
|
"@agents24/client": {
|
|
18
|
-
"contract": "
|
|
18
|
+
"contract": "0394b689ce7604b444b11c8792050fae0c1da4233d6b318d22832c3b89516a4a",
|
|
19
19
|
"runtime": "run-stream.v3"
|
|
20
20
|
},
|
|
21
21
|
"@agents24/node": {
|
|
22
|
-
"contract": "
|
|
22
|
+
"contract": "8bc171524458786bf938b66ec15fe511e9359792c9eee5f2e852f8d00920c679",
|
|
23
23
|
"node": "^22.0.0 || ^24.0.0"
|
|
24
24
|
},
|
|
25
25
|
"@agents24/react": {
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"react": ">=19 <20"
|
|
28
28
|
},
|
|
29
29
|
"@talmudpedia/runtime-sdk": {
|
|
30
|
-
"contract": "
|
|
30
|
+
"contract": "0394b689ce7604b444b11c8792050fae0c1da4233d6b318d22832c3b89516a4a",
|
|
31
31
|
"protocolOwner": "@agents24/client"
|
|
32
32
|
},
|
|
33
33
|
"agents24": {
|
|
34
|
-
"contract": "
|
|
34
|
+
"contract": "8bc171524458786bf938b66ec15fe511e9359792c9eee5f2e852f8d00920c679",
|
|
35
35
|
"python": ">=3.10"
|
|
36
36
|
}
|
|
37
37
|
},
|
package/dist/bff.cjs
CHANGED
|
@@ -538,7 +538,9 @@ function createAgents24BffHandlerWithResolver(options, resolveCustomerIdentity)
|
|
|
538
538
|
metadata: objectValue(body.metadata),
|
|
539
539
|
client: objectValue(body.client),
|
|
540
540
|
cursor: 0
|
|
541
|
-
}, (event) =>
|
|
541
|
+
}, (event) => {
|
|
542
|
+
if (event.event !== "assistant.completed" || new URL(request.url).searchParams.get("stream_features")?.split(",").includes("assistant-completion-v1")) return write(event);
|
|
543
|
+
}, { signal: request.signal });
|
|
542
544
|
}, {
|
|
543
545
|
"X-Run-ID": admittedRunId,
|
|
544
546
|
...admission.thread_id ? { "X-Thread-ID": admission.thread_id } : {}
|
|
@@ -557,7 +559,9 @@ function createAgents24BffHandlerWithResolver(options, resolveCustomerIdentity)
|
|
|
557
559
|
runtime_target: runtimeTarget,
|
|
558
560
|
integration_id: integrationId,
|
|
559
561
|
...cursor === void 0 ? {} : { cursor: Number(cursor) }
|
|
560
|
-
}, (event) =>
|
|
562
|
+
}, (event) => {
|
|
563
|
+
if (event.event !== "assistant.completed" || new URL(request.url).searchParams.get("stream_features")?.split(",").includes("assistant-completion-v1")) return write(event);
|
|
564
|
+
}, {
|
|
561
565
|
idempotencyKey,
|
|
562
566
|
signal: request.signal
|
|
563
567
|
});
|
|
@@ -986,7 +990,9 @@ function createResolvedAgents24BffHandler(options) {
|
|
|
986
990
|
metadata: objectValue(body.metadata),
|
|
987
991
|
client: objectValue(body.client),
|
|
988
992
|
cursor: 0
|
|
989
|
-
}, (event) =>
|
|
993
|
+
}, (event) => {
|
|
994
|
+
if (event.event !== "assistant.completed" || new URL(request.url).searchParams.get("stream_features")?.split(",").includes("assistant-completion-v1")) return write(event);
|
|
995
|
+
}, { signal: request.signal });
|
|
990
996
|
}, {
|
|
991
997
|
"X-Run-ID": admittedRunId,
|
|
992
998
|
...admission.thread_id ? { "X-Thread-ID": admission.thread_id } : {}
|