@anuma/sdk 10.6.2 → 10.7.0
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/expo/index.cjs +7 -1
- package/dist/expo/index.d.mts +2 -0
- package/dist/expo/index.d.ts +2 -0
- package/dist/expo/index.mjs +7 -1
- package/dist/react/{consolidate-RASCVKD2.mjs → consolidate-KM26Y2LT.mjs} +1 -1
- package/dist/react/index.cjs +6508 -6227
- package/dist/react/index.d.mts +256 -155
- package/dist/react/index.d.ts +256 -155
- package/dist/react/index.mjs +5999 -5722
- package/dist/server/index.cjs +7 -1
- package/dist/server/index.d.mts +2 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.mjs +7 -1
- package/package.json +1 -1
- package/dist/react/{chunk-6QCUNXU6.mjs → chunk-3VZG3QO5.mjs} +957 -957
package/dist/expo/index.cjs
CHANGED
|
@@ -11129,7 +11129,13 @@ Executing tool: ${toolInfo}
|
|
|
11129
11129
|
if (onError) onError(errorObj);
|
|
11130
11130
|
await fireRunError({ error: errorMsg, stage: "model", errorObject: errorObj });
|
|
11131
11131
|
const statusCode = err instanceof Error && "statusCode" in err ? err.statusCode : void 0;
|
|
11132
|
-
|
|
11132
|
+
const connectionLost = !(err instanceof ProviderStreamError) && !(err instanceof SseError);
|
|
11133
|
+
return {
|
|
11134
|
+
data: null,
|
|
11135
|
+
error: errorMsg,
|
|
11136
|
+
statusCode,
|
|
11137
|
+
...connectionLost ? { connectionLost: true } : {}
|
|
11138
|
+
};
|
|
11133
11139
|
} finally {
|
|
11134
11140
|
cleanupSignalLink();
|
|
11135
11141
|
}
|
package/dist/expo/index.d.mts
CHANGED
|
@@ -2587,6 +2587,8 @@ type RunToolLoopResult = {
|
|
|
2587
2587
|
detached?: true;
|
|
2588
2588
|
/** Non-null only when `resumable` was true AND an inference id was captured before detach. */
|
|
2589
2589
|
resume?: StreamResumeHandle | null;
|
|
2590
|
+
/** True when the connection failed rather than the generation: the portal may still be generating. */
|
|
2591
|
+
connectionLost?: true;
|
|
2590
2592
|
/**
|
|
2591
2593
|
* Terminal state of the final model response, when the failure is one the
|
|
2592
2594
|
* loop diagnosed FROM that response — today, the truncated-to-nothing
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -2587,6 +2587,8 @@ type RunToolLoopResult = {
|
|
|
2587
2587
|
detached?: true;
|
|
2588
2588
|
/** Non-null only when `resumable` was true AND an inference id was captured before detach. */
|
|
2589
2589
|
resume?: StreamResumeHandle | null;
|
|
2590
|
+
/** True when the connection failed rather than the generation: the portal may still be generating. */
|
|
2591
|
+
connectionLost?: true;
|
|
2590
2592
|
/**
|
|
2591
2593
|
* Terminal state of the final model response, when the failure is one the
|
|
2592
2594
|
* loop diagnosed FROM that response — today, the truncated-to-nothing
|
package/dist/expo/index.mjs
CHANGED
|
@@ -9461,7 +9461,13 @@ Executing tool: ${toolInfo}
|
|
|
9461
9461
|
if (onError) onError(errorObj);
|
|
9462
9462
|
await fireRunError({ error: errorMsg, stage: "model", errorObject: errorObj });
|
|
9463
9463
|
const statusCode = err instanceof Error && "statusCode" in err ? err.statusCode : void 0;
|
|
9464
|
-
|
|
9464
|
+
const connectionLost = !(err instanceof ProviderStreamError) && !(err instanceof SseError);
|
|
9465
|
+
return {
|
|
9466
|
+
data: null,
|
|
9467
|
+
error: errorMsg,
|
|
9468
|
+
statusCode,
|
|
9469
|
+
...connectionLost ? { connectionLost: true } : {}
|
|
9470
|
+
};
|
|
9465
9471
|
} finally {
|
|
9466
9472
|
cleanupSignalLink();
|
|
9467
9473
|
}
|