@pluno/product-agent-web 0.1.179 → 0.1.180
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 +4 -1
- package/dist/modelSelection.d.ts +35 -0
- package/dist/product-agent-sdk.js +336 -314
- package/dist/product-agent-widget.js +2681 -2510
- package/dist/widget.d.ts +5 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ProductAgentTaskStatus } from "./taskPageTitle";
|
|
2
|
-
export type ProductAgentModel = "gpt-5.4-nano" | "gpt-5.4-mini" | "gpt-5.4" | "gpt-5.6-luna" | "gpt-5.6-terra" | "gpt-5.6-sol";
|
|
2
|
+
export type ProductAgentModel = "anthropic/claude-opus-5" | "anthropic/claude-sonnet-5" | "deepseek/deepseek-chat-v3.1" | "deepseek/deepseek-v4-flash" | "gpt-5.4-nano" | "gpt-5.4-mini" | "gpt-5.4" | "gpt-5.6-luna" | "gpt-5.6-terra" | "gpt-5.6-sol";
|
|
3
3
|
export type ProductAgentEntrySurface = "extension_sidepanel" | "extension_widget" | "main_web_chat" | "whatsapp" | "automation" | "mcp" | "embedded_widget" | "embedded_custom_ui";
|
|
4
4
|
export type ProductAgentProductVariant = "personal" | "customer_embedded";
|
|
5
5
|
export type ProductAgentLegacyEntrySurface = "sidepanel" | "browser_extension_page_ui" | "sdk_preview_widget" | "browser_extension_sdk_preview" | "sdk-preview" | "main_chat" | "automation_run";
|
|
@@ -310,6 +310,8 @@ export declare class PlunoProductAgent {
|
|
|
310
310
|
initiatedBy?: "pluno";
|
|
311
311
|
invocation?: ProductAgentInvocation | "pluno";
|
|
312
312
|
}): Promise<string | null>;
|
|
313
|
+
getModel(): ProductAgentModel | undefined;
|
|
314
|
+
setModel(model: ProductAgentModel): void;
|
|
313
315
|
retryLastMessage(): boolean;
|
|
314
316
|
createLocalAttachment(file: File): ProductAgentAttachment;
|
|
315
317
|
uploadAttachment(file: File): Promise<ProductAgentAttachment>;
|
|
@@ -356,6 +358,7 @@ export declare class PlunoProductAgent {
|
|
|
356
358
|
private shouldIgnoreStoppedTurnEvent;
|
|
357
359
|
private filterStoppedSnapshotItems;
|
|
358
360
|
private handleServerEvent;
|
|
361
|
+
private updatePersonalModelFromSession;
|
|
359
362
|
private shouldIgnoreBackgroundSessionEvent;
|
|
360
363
|
private rememberCurrentRunAsBackground;
|
|
361
364
|
private retryAfterRetryableError;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const PERSONAL_PRODUCT_AGENT_PRIMARY_MODELS: readonly [{
|
|
2
|
+
readonly value: "gpt-5.6-terra";
|
|
3
|
+
readonly label: "gpt-5.6-terra";
|
|
4
|
+
}, {
|
|
5
|
+
readonly value: "anthropic/claude-sonnet-5";
|
|
6
|
+
readonly label: "Claude Sonnet 5";
|
|
7
|
+
}, {
|
|
8
|
+
readonly value: "deepseek/deepseek-v4-flash";
|
|
9
|
+
readonly label: "DeepSeek V4 Flash";
|
|
10
|
+
}];
|
|
11
|
+
export declare const PERSONAL_PRODUCT_AGENT_MORE_MODELS: readonly [{
|
|
12
|
+
readonly value: "anthropic/claude-opus-5";
|
|
13
|
+
readonly label: "Claude Opus 5";
|
|
14
|
+
}, {
|
|
15
|
+
readonly value: "gpt-5.6-sol";
|
|
16
|
+
readonly label: "gpt-5.6-sol";
|
|
17
|
+
}];
|
|
18
|
+
export type PersonalProductAgentModel = (typeof PERSONAL_PRODUCT_AGENT_PRIMARY_MODELS)[number]["value"] | (typeof PERSONAL_PRODUCT_AGENT_MORE_MODELS)[number]["value"];
|
|
19
|
+
export declare const PERSONAL_PRODUCT_AGENT_MODELS: readonly [{
|
|
20
|
+
readonly value: "gpt-5.6-terra";
|
|
21
|
+
readonly label: "gpt-5.6-terra";
|
|
22
|
+
}, {
|
|
23
|
+
readonly value: "anthropic/claude-sonnet-5";
|
|
24
|
+
readonly label: "Claude Sonnet 5";
|
|
25
|
+
}, {
|
|
26
|
+
readonly value: "deepseek/deepseek-v4-flash";
|
|
27
|
+
readonly label: "DeepSeek V4 Flash";
|
|
28
|
+
}, {
|
|
29
|
+
readonly value: "anthropic/claude-opus-5";
|
|
30
|
+
readonly label: "Claude Opus 5";
|
|
31
|
+
}, {
|
|
32
|
+
readonly value: "gpt-5.6-sol";
|
|
33
|
+
readonly label: "gpt-5.6-sol";
|
|
34
|
+
}];
|
|
35
|
+
export declare const isPersonalProductAgentModel: (value: unknown) => value is PersonalProductAgentModel;
|