@pluno/product-agent-web 0.1.179 → 0.1.181

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 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";
@@ -130,8 +130,6 @@ export type ProductAgentState = {
130
130
  appearance: ProductAgentAppearance | null;
131
131
  messages: ProductAgentMessage[];
132
132
  isLoadingSession: boolean;
133
- isLoadingOlderMessages: boolean;
134
- hasOlderMessages: boolean;
135
133
  assistantDraft: string;
136
134
  assistantDraftItemId: string | null;
137
135
  assistantDraftPhase: "commentary" | "final_answer" | null;
@@ -250,10 +248,7 @@ export declare class PlunoProductAgent {
250
248
  private sessionLoadRequestTimer;
251
249
  private pendingSessionSubscription;
252
250
  private sessionHistoryHydration;
253
- private sessionItemsRequestId;
254
- private sessionItemsCursor;
255
- private hasLoadedOlderSessionItems;
256
- private readonly loadedOlderSessionItemIds;
251
+ private sessionActivityRequestId;
257
252
  private readonly transportIdentity;
258
253
  private retryAttemptsByClientMessageId;
259
254
  private retryTimersByClientMessageId;
@@ -310,6 +305,8 @@ export declare class PlunoProductAgent {
310
305
  initiatedBy?: "pluno";
311
306
  invocation?: ProductAgentInvocation | "pluno";
312
307
  }): Promise<string | null>;
308
+ getModel(): ProductAgentModel | undefined;
309
+ setModel(model: ProductAgentModel): void;
313
310
  retryLastMessage(): boolean;
314
311
  createLocalAttachment(file: File): ProductAgentAttachment;
315
312
  uploadAttachment(file: File): Promise<ProductAgentAttachment>;
@@ -329,11 +326,10 @@ export declare class PlunoProductAgent {
329
326
  setSessionPinned(sessionId: string, pinned: boolean): Promise<void>;
330
327
  renameSession(sessionId: string, title: string): Promise<void>;
331
328
  loadSession(sessionId: string): void;
332
- loadOlderMessages(): void;
333
329
  private canLoadSessionHistoryOverHttp;
334
330
  private loadSessionHistoryOverHttp;
335
331
  private subscribeToSessionBeforeHistory;
336
- private autoLoadRemainingSessionHistory;
332
+ private autoLoadSessionActivity;
337
333
  private fetchSessionHistoryPageUntilCurrent;
338
334
  private failSessionHistoryRequest;
339
335
  private send;
@@ -356,6 +352,7 @@ export declare class PlunoProductAgent {
356
352
  private shouldIgnoreStoppedTurnEvent;
357
353
  private filterStoppedSnapshotItems;
358
354
  private handleServerEvent;
355
+ private updatePersonalModelFromSession;
359
356
  private shouldIgnoreBackgroundSessionEvent;
360
357
  private rememberCurrentRunAsBackground;
361
358
  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;