@anuma/sdk 10.6.2 → 10.8.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 +30 -2
- package/dist/expo/index.d.mts +163 -153
- package/dist/expo/index.d.ts +163 -153
- package/dist/expo/index.mjs +30 -2
- package/dist/index.d.mts +157 -153
- package/dist/index.d.ts +157 -153
- package/dist/react/{consolidate-RASCVKD2.mjs → consolidate-KM26Y2LT.mjs} +1 -1
- package/dist/react/index.cjs +6502 -6199
- package/dist/react/index.d.mts +477 -368
- package/dist/react/index.d.ts +477 -368
- package/dist/react/index.mjs +6020 -5721
- package/dist/server/index.cjs +7 -1
- package/dist/server/index.d.mts +10 -0
- package/dist/server/index.d.ts +10 -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/server/index.cjs
CHANGED
|
@@ -25350,7 +25350,13 @@ Executing tool: ${toolInfo}
|
|
|
25350
25350
|
if (onError) onError(errorObj);
|
|
25351
25351
|
await fireRunError({ error: errorMsg, stage: "model", errorObject: errorObj });
|
|
25352
25352
|
const statusCode = err instanceof Error && "statusCode" in err ? err.statusCode : void 0;
|
|
25353
|
-
|
|
25353
|
+
const connectionLost = !(err instanceof ProviderStreamError) && !(err instanceof SseError);
|
|
25354
|
+
return {
|
|
25355
|
+
data: null,
|
|
25356
|
+
error: errorMsg,
|
|
25357
|
+
statusCode,
|
|
25358
|
+
...connectionLost ? { connectionLost: true } : {}
|
|
25359
|
+
};
|
|
25354
25360
|
} finally {
|
|
25355
25361
|
cleanupSignalLink();
|
|
25356
25362
|
}
|
package/dist/server/index.d.mts
CHANGED
|
@@ -2276,6 +2276,8 @@ type RunToolLoopResult = {
|
|
|
2276
2276
|
detached?: true;
|
|
2277
2277
|
/** Non-null only when `resumable` was true AND an inference id was captured before detach. */
|
|
2278
2278
|
resume?: StreamResumeHandle | null;
|
|
2279
|
+
/** True when the connection failed rather than the generation: the portal may still be generating. */
|
|
2280
|
+
connectionLost?: true;
|
|
2279
2281
|
/**
|
|
2280
2282
|
* Terminal state of the final model response, when the failure is one the
|
|
2281
2283
|
* loop diagnosed FROM that response — today, the truncated-to-nothing
|
|
@@ -2601,6 +2603,10 @@ interface StockPricePreProcessorOptions {
|
|
|
2601
2603
|
*/
|
|
2602
2604
|
declare function createStockPricePreProcessor(options?: StockPricePreProcessorOptions): PromptPreProcessor;
|
|
2603
2605
|
|
|
2606
|
+
type ChatJson = null | boolean | number | string | ChatJson[] | {
|
|
2607
|
+
[key: string]: ChatJson;
|
|
2608
|
+
};
|
|
2609
|
+
|
|
2604
2610
|
declare class VaultMemory extends Model {
|
|
2605
2611
|
static table: string;
|
|
2606
2612
|
content: string;
|
|
@@ -7562,6 +7568,10 @@ interface StoredConversation {
|
|
|
7562
7568
|
/** When the conversation was pinned to the top of the list; null/unset = not pinned.
|
|
7563
7569
|
* `null` (not `undefined`) at runtime for unpinned rows — mirrors the model field. */
|
|
7564
7570
|
pinnedAt?: Date | null;
|
|
7571
|
+
/** Per-conversation app state kept with the conversation in vault, keyed by the app; absent on local storage. */
|
|
7572
|
+
context?: {
|
|
7573
|
+
[key: string]: ChatJson;
|
|
7574
|
+
};
|
|
7565
7575
|
}
|
|
7566
7576
|
/**
|
|
7567
7577
|
* Lazy variant of {@link StoredConversation}.
|
package/dist/server/index.d.ts
CHANGED
|
@@ -2276,6 +2276,8 @@ type RunToolLoopResult = {
|
|
|
2276
2276
|
detached?: true;
|
|
2277
2277
|
/** Non-null only when `resumable` was true AND an inference id was captured before detach. */
|
|
2278
2278
|
resume?: StreamResumeHandle | null;
|
|
2279
|
+
/** True when the connection failed rather than the generation: the portal may still be generating. */
|
|
2280
|
+
connectionLost?: true;
|
|
2279
2281
|
/**
|
|
2280
2282
|
* Terminal state of the final model response, when the failure is one the
|
|
2281
2283
|
* loop diagnosed FROM that response — today, the truncated-to-nothing
|
|
@@ -2601,6 +2603,10 @@ interface StockPricePreProcessorOptions {
|
|
|
2601
2603
|
*/
|
|
2602
2604
|
declare function createStockPricePreProcessor(options?: StockPricePreProcessorOptions): PromptPreProcessor;
|
|
2603
2605
|
|
|
2606
|
+
type ChatJson = null | boolean | number | string | ChatJson[] | {
|
|
2607
|
+
[key: string]: ChatJson;
|
|
2608
|
+
};
|
|
2609
|
+
|
|
2604
2610
|
declare class VaultMemory extends Model {
|
|
2605
2611
|
static table: string;
|
|
2606
2612
|
content: string;
|
|
@@ -7562,6 +7568,10 @@ interface StoredConversation {
|
|
|
7562
7568
|
/** When the conversation was pinned to the top of the list; null/unset = not pinned.
|
|
7563
7569
|
* `null` (not `undefined`) at runtime for unpinned rows — mirrors the model field. */
|
|
7564
7570
|
pinnedAt?: Date | null;
|
|
7571
|
+
/** Per-conversation app state kept with the conversation in vault, keyed by the app; absent on local storage. */
|
|
7572
|
+
context?: {
|
|
7573
|
+
[key: string]: ChatJson;
|
|
7574
|
+
};
|
|
7565
7575
|
}
|
|
7566
7576
|
/**
|
|
7567
7577
|
* Lazy variant of {@link StoredConversation}.
|
package/dist/server/index.mjs
CHANGED
|
@@ -23619,7 +23619,13 @@ Executing tool: ${toolInfo}
|
|
|
23619
23619
|
if (onError) onError(errorObj);
|
|
23620
23620
|
await fireRunError({ error: errorMsg, stage: "model", errorObject: errorObj });
|
|
23621
23621
|
const statusCode = err instanceof Error && "statusCode" in err ? err.statusCode : void 0;
|
|
23622
|
-
|
|
23622
|
+
const connectionLost = !(err instanceof ProviderStreamError) && !(err instanceof SseError);
|
|
23623
|
+
return {
|
|
23624
|
+
data: null,
|
|
23625
|
+
error: errorMsg,
|
|
23626
|
+
statusCode,
|
|
23627
|
+
...connectionLost ? { connectionLost: true } : {}
|
|
23628
|
+
};
|
|
23623
23629
|
} finally {
|
|
23624
23630
|
cleanupSignalLink();
|
|
23625
23631
|
}
|