@pluno/product-agent-web 0.1.181 → 0.1.183
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/index.d.ts +1 -0
- package/dist/product-agent-sdk.js +386 -357
- package/dist/product-agent-widget.js +1532 -1491
- package/dist/shareCard.d.ts +2 -0
- package/package.json +1 -1
package/dist/shareCard.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export type ProductAgentShareMessage = {
|
|
|
4
4
|
content: string;
|
|
5
5
|
toolName?: string;
|
|
6
6
|
callId?: string;
|
|
7
|
+
sharePromptAllowed?: boolean;
|
|
7
8
|
};
|
|
8
9
|
export type ProductAgentShareSessionItem = {
|
|
9
10
|
id: string;
|
|
@@ -19,6 +20,7 @@ export declare const SUGGEST_SHARE_ON_SOCIALS_TOOL_NAME = "suggest_share_on_soci
|
|
|
19
20
|
export declare function findShareCandidateForAssistantMessage(messages: ProductAgentShareMessage[], assistantMessageId: string): ProductAgentShareCandidate | null;
|
|
20
21
|
export declare function findSuggestedShareCandidate(items: ProductAgentShareSessionItem[]): ProductAgentShareCandidate | null;
|
|
21
22
|
export declare function findSuggestedShareCandidateForMessages(messages: ProductAgentShareMessage[]): ProductAgentShareCandidate | null;
|
|
23
|
+
export declare function getSharePromptAllowedFromOutput(output: unknown): boolean | null;
|
|
22
24
|
export declare function getSharePromptVariant(candidateId: string): ProductAgentSharePromptVariant;
|
|
23
25
|
export declare function redactPublicShareText(text: string): string;
|
|
24
26
|
export declare function stripMarkdownToPlainText(text: string): string;
|
package/package.json
CHANGED