@pluno/product-agent-web 0.1.288 → 0.1.290

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.
@@ -8,7 +8,7 @@ export declare const getRuntimeModelScope: (runtime: PAClientRuntime, clientScop
8
8
  selectedModel?: PAProductAgentModel;
9
9
  submissions: Readonly<Record<string, import("../core/model-selection/state").PAModelSubmission>>;
10
10
  }>;
11
- export declare const getRuntimeModel: (runtime: PAClientRuntime, clientScopeId: PAClientScopeId) => "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" | undefined;
11
+ export declare const getRuntimeModel: (runtime: PAClientRuntime, clientScopeId: PAClientScopeId) => "gpt-5.6-sol" | "anthropic/claude-sonnet-5" | "deepseek/deepseek-v4-flash" | "anthropic/claude-opus-5" | "gpt-5.6-terra" | "deepseek/deepseek-chat-v3.1" | "gpt-5.4-nano" | "gpt-5.4-mini" | "gpt-5.4" | "gpt-5.6-luna" | undefined;
12
12
  export declare function captureRequestedModel(runtime: PAClientRuntime, clientScopeId: PAClientScopeId, clientMessageId: string, requestedModel?: PAProductAgentModel | null): PAProductAgentModel | undefined;
13
13
  export declare function acceptModelRouting(runtime: PAClientRuntime, clientScopeId: PAClientScopeId, sessionId: string, clientMessageId: string, value: unknown, updatedAt?: string): void;
14
14
  export declare function hydrateModelRouting(runtime: PAClientRuntime, clientScopeId: PAClientScopeId, sessionId: string, turns: unknown): void;
@@ -36,6 +36,7 @@ export type ProductAgentRuntimeCommand = {
36
36
  } | {
37
37
  type: "runtime.warmup";
38
38
  reason: "panel_open" | "extension_install" | "composer_input";
39
+ requestedModel?: ProductAgentModel;
39
40
  } | {
40
41
  type: "runtime.widget_lifecycle";
41
42
  action: ProductAgentWidgetLifecycleAction;
@@ -72,6 +73,7 @@ export type ProductAgentRuntimeCommand = {
72
73
  clientMessageId?: string;
73
74
  } | {
74
75
  type: "interaction.act";
76
+ requestedModel?: ProductAgentModel;
75
77
  interactionId: string;
76
78
  action: ProductAgentInteractionAction;
77
79
  expectedRevision: number;
@@ -103,6 +105,7 @@ export type ProductAgentRuntimeCommand = {
103
105
  message: string;
104
106
  } | {
105
107
  type: "conversation.send";
108
+ selectionKey?: string;
106
109
  requestedModel?: ProductAgentModel;
107
110
  content: string;
108
111
  clientMessageId: string;
@@ -136,11 +139,12 @@ export type ProductAgentRuntimeClient = {
136
139
  reportResponseVisibility?(observation: ResponseVisibilityObservation): void;
137
140
  reportInvalidStateTransition?(reason: string, clientMessageId?: string, uiInvariant?: UiInvariantEvidence): void;
138
141
  reportDisplayedError?(reason: string, errorFingerprint: string, displayedMessage?: string, renderedError?: RenderedErrorEvidence, historyRefreshFailure?: HistoryRefreshFailure): void;
139
- warmup(reason?: "panel_open" | "extension_install" | "composer_input"): void;
142
+ warmup(reason?: "panel_open" | "extension_install" | "composer_input", requestedModel?: ProductAgentModel): void;
140
143
  recordPromptPresented?(feature: "notifications" | "tab_grouping", openingGeneration: number): void;
141
144
  recordWidgetLifecycle(action: ProductAgentWidgetLifecycleAction, trigger: ProductAgentWidgetLifecycleTrigger): void;
142
145
  sendMessage(content: string, options?: {
143
146
  attachments?: ProductAgentAttachment[];
147
+ requestedModel?: ProductAgentModel;
144
148
  clientMessageId?: string;
145
149
  initiatedBy?: "pluno";
146
150
  invocation?: ProductAgentInvocation | "pluno";
@@ -170,6 +174,7 @@ export type ProductAgentRuntimeClient = {
170
174
  getInteractions(): readonly ProductAgentInteraction[];
171
175
  subscribeInteractions(listener: (interactions: readonly ProductAgentInteraction[]) => void): () => void;
172
176
  actOnInteraction(interactionId: string, action: ProductAgentInteractionAction, expectedRevision: number, input?: {
177
+ requestedModel?: ProductAgentModel;
173
178
  feedback?: string;
174
179
  snoozeUntil?: string;
175
180
  expectedSourceVersion?: number | null;
@@ -192,6 +197,7 @@ export declare class ProductAgentRemoteRuntimeClient implements ProductAgentRunt
192
197
  private state;
193
198
  private sessionHistoryState;
194
199
  private model;
200
+ private readonly initialModel;
195
201
  private interactions;
196
202
  private account;
197
203
  private stagedProactiveSuggestionClientMessageId;
@@ -204,7 +210,8 @@ export declare class ProductAgentRemoteRuntimeClient implements ProductAgentRunt
204
210
  private stopError;
205
211
  private readonly stopPreviews;
206
212
  private readonly durabilityWaiters;
207
- private operationQueue;
213
+ private navigationRevision;
214
+ private pendingNavigation;
208
215
  private destroyed;
209
216
  private hasBeenReady;
210
217
  constructor(initialState: ProductAgentState, adapter: ProductAgentRuntimeClientAdapter, model?: ProductAgentModel);
@@ -213,7 +220,7 @@ export declare class ProductAgentRemoteRuntimeClient implements ProductAgentRunt
213
220
  updateProjection(state: ProductAgentState, model?: ProductAgentModel, sessionHistoryState?: ProductAgentQueryState<ProductAgentEntityQueryData<ProductAgentSessionHistoryEntry>>, interactions?: readonly ProductAgentInteraction[], account?: ProductAgentAccountProjection | null): void;
214
221
  connect(): Promise<void>;
215
222
  destroy(): void;
216
- warmup(reason?: "panel_open" | "extension_install" | "composer_input"): Promise<void>;
223
+ warmup(reason?: "panel_open" | "extension_install" | "composer_input", requestedModel?: ProductAgentModel): Promise<void>;
217
224
  recordPromptPresented(feature: "notifications" | "tab_grouping", openingGeneration: number): void;
218
225
  recordWidgetLifecycle(action: ProductAgentWidgetLifecycleAction, trigger: ProductAgentWidgetLifecycleTrigger): void;
219
226
  reportOperationTiming(timing: OperationTiming): void;
@@ -222,6 +229,7 @@ export declare class ProductAgentRemoteRuntimeClient implements ProductAgentRunt
222
229
  reportDisplayedError(reason: string, errorFingerprint: string, displayedMessage?: string, renderedError?: RenderedErrorEvidence, historyRefreshFailure?: HistoryRefreshFailure): void;
223
230
  sendMessage(content: string, options?: {
224
231
  attachments?: ProductAgentAttachment[];
232
+ requestedModel?: ProductAgentModel;
225
233
  clientMessageId?: string;
226
234
  initiatedBy?: "pluno";
227
235
  invocation?: ProductAgentInvocation | "pluno";
@@ -230,7 +238,7 @@ export declare class ProductAgentRemoteRuntimeClient implements ProductAgentRunt
230
238
  submittedAt?: number;
231
239
  }): Promise<string | null>;
232
240
  private sendMessageNow;
233
- getModel(): ProductAgentModel | undefined;
241
+ getModel(): ProductAgentModel;
234
242
  setModel(model: ProductAgentModel): Promise<void>;
235
243
  retryLastMessage(userMessageId?: string): Promise<boolean>;
236
244
  createLocalAttachment(file: File): ProductAgentAttachment;
@@ -255,6 +263,7 @@ export declare class ProductAgentRemoteRuntimeClient implements ProductAgentRunt
255
263
  getInteractions(): readonly ProductAgentInteraction[];
256
264
  subscribeInteractions(listener: (interactions: readonly ProductAgentInteraction[]) => void): () => void;
257
265
  actOnInteraction(interactionId: string, action: ProductAgentInteractionAction, expectedRevision: number, input?: {
266
+ requestedModel?: ProductAgentModel;
258
267
  feedback?: string;
259
268
  snoozeUntil?: string;
260
269
  expectedSourceVersion?: number | null;
@@ -267,6 +276,6 @@ export declare class ProductAgentRemoteRuntimeClient implements ProductAgentRunt
267
276
  loadSession(sessionId: string): Promise<void>;
268
277
  stageProactiveSuggestionQuestion(question: string): Promise<void>;
269
278
  private dispatch;
270
- private enqueueOperation;
279
+ private navigate;
271
280
  private emit;
272
281
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluno/product-agent-web",
3
- "version": "0.1.288",
3
+ "version": "0.1.290",
4
4
  "description": "Browser SDK and default widget for embedding Pluno Product Agent into customer web apps.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",