@gea-ai/agent-sdk 0.1.260925-alpha.0 → 0.1.260925-alpha.1
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.
|
@@ -644,6 +644,13 @@ export async function handleAgentSessionInboxRequest(request, storage) {
|
|
|
644
644
|
if (previous !== undefined)
|
|
645
645
|
return Response.json({ error: "message_already_accepted" }, { status: 409 });
|
|
646
646
|
if (input.message && state.inputWait) {
|
|
647
|
+
// Retried dispatch of this Run is not a new user turn. In particular,
|
|
648
|
+
// a late child-start command must not skip the input it just requested.
|
|
649
|
+
if (state.inputWait.turnId === (input.runId ?? input.executionId))
|
|
650
|
+
return Response.json({ error: "execution_already_started" }, {
|
|
651
|
+
status: 409,
|
|
652
|
+
headers: { "x-gea-session-execution": "already-started" },
|
|
653
|
+
});
|
|
647
654
|
await skipInputWait(tx, state, runs);
|
|
648
655
|
if (state.draining)
|
|
649
656
|
return Response.json({ error: "session_busy" }, { status: 409 });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gea-ai/agent-sdk",
|
|
3
|
-
"version": "0.1.260925-alpha.
|
|
3
|
+
"version": "0.1.260925-alpha.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"homepage": "https://musegea.com/developers",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"@ai-sdk/otel": "1.0.9",
|
|
116
116
|
"@ai-sdk/provider": "4.0.1",
|
|
117
117
|
"@ai-sdk/provider-utils": "5.0.2",
|
|
118
|
-
"@gea-ai/contract": "0.1.260925-alpha.
|
|
118
|
+
"@gea-ai/contract": "0.1.260925-alpha.1",
|
|
119
119
|
"@opentelemetry/api": "1.9.1",
|
|
120
120
|
"@opentelemetry/context-async-hooks": "2.10.0",
|
|
121
121
|
"@opentelemetry/core": "2.10.0",
|