@tangle-network/agent-app 0.52.16 → 0.52.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/dist/assistant/index.js +1 -1
- package/dist/{chunk-IK7JCJQF.js → chunk-JHHNODBT.js} +21 -1
- package/dist/chunk-JHHNODBT.js.map +1 -0
- package/dist/web-react/index.d.ts +1 -0
- package/dist/web-react/index.js +3 -1
- package/dist/web-react/turn-funding-recovery.d.ts +20 -0
- package/package.json +1 -1
- package/dist/chunk-IK7JCJQF.js.map +0 -1
|
@@ -30,6 +30,7 @@ import type { WorkProductPersistedPart } from '../work-product/types';
|
|
|
30
30
|
export * from './chat-stream';
|
|
31
31
|
export * from './chat-interactions';
|
|
32
32
|
export * from './chat-composer';
|
|
33
|
+
export { getChatFundingRecovery, type ChatFundingFailure, type ChatFundingRecovery } from './turn-funding-recovery';
|
|
33
34
|
export { RouteChunkBoundary, type RouteChunkBoundaryProps } from './lazy-load-boundary';
|
|
34
35
|
export * from './agent-profile-editor';
|
|
35
36
|
export * from './agent-profile-viewer';
|
package/dist/web-react/index.js
CHANGED
|
@@ -64,6 +64,7 @@ import {
|
|
|
64
64
|
formatRecordGridValue,
|
|
65
65
|
formatSparklineValue,
|
|
66
66
|
formatTokensPerSecond,
|
|
67
|
+
getChatFundingRecovery,
|
|
67
68
|
hasSecretField,
|
|
68
69
|
hydrateChatInteractions,
|
|
69
70
|
insightDelta,
|
|
@@ -130,7 +131,7 @@ import {
|
|
|
130
131
|
withoutRecordGridCreated,
|
|
131
132
|
withoutRecordGridRemoved,
|
|
132
133
|
withoutRecordGridUpdate
|
|
133
|
-
} from "../chunk-
|
|
134
|
+
} from "../chunk-JHHNODBT.js";
|
|
134
135
|
import {
|
|
135
136
|
SessionHistoryPanel,
|
|
136
137
|
formatSessionTimestamp,
|
|
@@ -376,6 +377,7 @@ export {
|
|
|
376
377
|
formatSessionTimestamp,
|
|
377
378
|
formatSparklineValue,
|
|
378
379
|
formatTokensPerSecond,
|
|
380
|
+
getChatFundingRecovery,
|
|
379
381
|
hasSecretField,
|
|
380
382
|
hydrateChatInteractions,
|
|
381
383
|
insightDelta,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface ChatFundingFailure {
|
|
2
|
+
code?: string;
|
|
3
|
+
message?: string;
|
|
4
|
+
}
|
|
5
|
+
/** Presentation only. The host supplies its authenticated billing destination. */
|
|
6
|
+
export interface ChatFundingRecovery {
|
|
7
|
+
reason: 'insufficient_credits' | 'paid_access_required';
|
|
8
|
+
title: string;
|
|
9
|
+
message: string;
|
|
10
|
+
actionLabel: string;
|
|
11
|
+
/** Retrying the same request cannot repair a funding prerequisite. */
|
|
12
|
+
retryable: false;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Recognize a paid-access refusal across HTTP and SDK-wrapped chat failures.
|
|
16
|
+
* Structured codes take precedence; the message fallback covers older sandbox
|
|
17
|
+
* transports that preserve the provider's words but replace its error code.
|
|
18
|
+
* This does not infer funding from a generic HTTP status or authorize a run.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getChatFundingRecovery(failure: ChatFundingFailure | string | null | undefined): ChatFundingRecovery | null;
|
package/package.json
CHANGED