@pluno/product-agent-web 0.1.256 → 0.1.258
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/product-agent-runtime.cjs +1 -1
- package/dist/product-agent-runtime.js +103 -104
- package/dist/product-agent-sdk.js +212 -213
- package/dist/product-agent-widget.js +3374 -3323
- package/dist/renderDiagnostics.d.ts +18 -2
- package/package.json +1 -1
|
@@ -15,11 +15,16 @@ export type UiTransitionContext = {
|
|
|
15
15
|
queryStatus: string | null;
|
|
16
16
|
queryRequestId: string | null;
|
|
17
17
|
queryUpdatedAt: number | null;
|
|
18
|
-
renderSource: "state" | "account" | "interactions" | "local" | "sidepanel_layout";
|
|
18
|
+
renderSource: "state" | "account" | "interactions" | "local" | "sidepanel_layout" | "observer";
|
|
19
19
|
selectionFencePending: boolean;
|
|
20
20
|
guardCreatedAt: number | null;
|
|
21
21
|
owner?: OwnerDiagnostics;
|
|
22
|
+
sdkVersion?: string;
|
|
23
|
+
presentationGate?: "none" | "authentication" | "signup";
|
|
24
|
+
firstObservedAt?: number;
|
|
25
|
+
confirmationMs?: number;
|
|
22
26
|
};
|
|
27
|
+
export declare function conversationPresentationGate(root: HTMLElement): "none" | "authentication" | "signup";
|
|
23
28
|
export type HistoryRefreshFailure = PAHistoryRefreshFailure;
|
|
24
29
|
export declare function isHistoryRefreshFailure(value: unknown): value is HistoryRefreshFailure;
|
|
25
30
|
export type RenderedErrorEvidence = {
|
|
@@ -31,6 +36,7 @@ export type RenderedErrorEvidence = {
|
|
|
31
36
|
retryable?: boolean;
|
|
32
37
|
};
|
|
33
38
|
export type UiStructureEvidence = {
|
|
39
|
+
duplicateToolCalls?: DuplicateToolCallEvidence[];
|
|
34
40
|
context?: UiTransitionContext;
|
|
35
41
|
sessionId: string | null;
|
|
36
42
|
messageKeys: string[];
|
|
@@ -47,8 +53,18 @@ export type UiInvariantEvidence = {
|
|
|
47
53
|
before: UiStructureEvidence | null;
|
|
48
54
|
current: UiStructureEvidence;
|
|
49
55
|
};
|
|
56
|
+
export type DuplicateToolCallEvidence = {
|
|
57
|
+
key: string | null;
|
|
58
|
+
count: number;
|
|
59
|
+
rows: {
|
|
60
|
+
itemId: string | null;
|
|
61
|
+
groupId: string | null;
|
|
62
|
+
}[];
|
|
63
|
+
truncated: boolean;
|
|
64
|
+
};
|
|
50
65
|
export declare function isRenderedErrorEvidence(value: unknown): value is RenderedErrorEvidence;
|
|
51
66
|
export declare function renderedErrorEvidence(state: ProductAgentState, itemId?: string): RenderedErrorEvidence | undefined;
|
|
52
|
-
export declare function uiInvariantEvidence(current: UiInvariantSnapshot, before?: UiInvariantSnapshot): UiInvariantEvidence;
|
|
67
|
+
export declare function uiInvariantEvidence(current: UiInvariantSnapshot, before?: UiInvariantSnapshot, root?: HTMLElement): UiInvariantEvidence;
|
|
53
68
|
export declare function captureUiStructure(root: HTMLElement, state: Pick<ProductAgentState, "sessionId" | "messages"> & Partial<ProductAgentState>, render?: Partial<Pick<UiTransitionContext, "renderSource" | "selectionFencePending" | "guardCreatedAt">>): UiStructureEvidence;
|
|
69
|
+
export declare function captureUiTransitionContext(root: HTMLElement, state: Partial<ProductAgentState>, render?: Partial<Pick<UiTransitionContext, "renderSource" | "selectionFencePending" | "guardCreatedAt">>): UiTransitionContext;
|
|
54
70
|
export declare function isUiInvariantEvidence(value: unknown): value is UiInvariantEvidence;
|
package/package.json
CHANGED