@pluno/product-agent-web 0.1.229 → 0.1.230

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/runtime.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { createProductAgentQueryState, mergeProductAgentEntityPages, normalizeProductAgentEntityPage, ProductAgentQueryController, reconcileProductAgentSubmissionGate, resolveProductAgentComposerAction, resolveProductAgentBillingPresentation, resolveProductAgentWidgetPresentation, hasProductAgentPaidCreditFallback, selectProductAgentQueryEntities, } from "./runtimeState";
2
- export type { ProductAgentAuthProjection, ProductAgentComposerAction, ProductAgentEntity, ProductAgentEntityPage, ProductAgentEntityQueryData, ProductAgentInteraction, ProductAgentInteractionAction, ProductAgentInteractionPresentation, ProductAgentInteractionScope, ProductAgentInteractionStatus, ProductAgentPromptAction, ProductAgentPromptDecision, ProductAgentPromptDecisionScope, ProductAgentQueryLoadMode, ProductAgentQueryState, ProductAgentQueryStatus, ProductAgentSafeUser, ProductAgentSafeWorkspace, ProductAgentSubmissionGate, ProductAgentWidgetPresentation, } from "./runtimeState";
1
+ export { createProductAgentQueryState, mergeProductAgentEntityPages, normalizeProductAgentEntityPage, ProductAgentQueryController, reconcileProductAgentSubmissionGate, resolveProductAgentComposerAction, canSubmitPersonalProductAgentMessage, isProductAgentAuthReconnectError, PRODUCT_AGENT_AUTH_RECONNECTING_ERROR_MESSAGE, resolveProductAgentBillingPresentation, resolveProductAgentWidgetPresentation, hasProductAgentPaidCreditFallback, selectProductAgentQueryEntities, } from "./runtimeState";
2
+ export type { ProductAgentAuthProjection, ProductAgentSubmissionContext, ProductAgentComposerAction, ProductAgentEntity, ProductAgentEntityPage, ProductAgentEntityQueryData, ProductAgentInteraction, ProductAgentInteractionAction, ProductAgentInteractionPresentation, ProductAgentInteractionScope, ProductAgentInteractionStatus, ProductAgentPromptAction, ProductAgentPromptDecision, ProductAgentPromptDecisionScope, ProductAgentQueryLoadMode, ProductAgentQueryState, ProductAgentQueryStatus, ProductAgentSafeUser, ProductAgentSafeWorkspace, ProductAgentSubmissionGate, ProductAgentWidgetPresentation, } from "./runtimeState";
3
3
  export { ProductAgentSessionHistoryManager } from "./sessionHistoryState";
4
4
  export type { ProductAgentSessionHistoryEntity, ProductAgentSessionHistoryLoader, ProductAgentSessionHistoryPage, } from "./sessionHistoryState";
5
5
  export { createLocalStorageInteractionDecisionStorage, ProductAgentInteractionManager, readLocalStorageInteractionDecisions, } from "./interactionManager";
@@ -160,6 +160,19 @@ export type ProductAgentBillingPresentation = {
160
160
  state: "usage";
161
161
  };
162
162
  export declare function resolveProductAgentBillingPresentation(account: ProductAgentAccountProjection | null | undefined): ProductAgentBillingPresentation;
163
+ export type ProductAgentSubmissionContext = {
164
+ currentPageResolved: boolean;
165
+ isWebsiteBlocked: boolean;
166
+ };
167
+ export declare function canSubmitPersonalProductAgentMessage(input: {
168
+ submissionAllowed: boolean;
169
+ isAuthenticated: boolean;
170
+ hasWorkspace: boolean;
171
+ isWebsiteBlocked: boolean;
172
+ isCurrentPageResolved: boolean;
173
+ isSubmitting: boolean;
174
+ hasPendingMessage: boolean;
175
+ }): boolean;
163
176
  export type ProductAgentComposerAction = {
164
177
  action: "send" | "stop";
165
178
  disabled: boolean;
@@ -171,4 +184,6 @@ export declare function resolveProductAgentComposerAction(input: {
171
184
  canStopRunningTurn: boolean;
172
185
  canSubmitMessage: boolean;
173
186
  }): ProductAgentComposerAction;
187
+ export declare const PRODUCT_AGENT_AUTH_RECONNECTING_ERROR_MESSAGE = "Pluno is reconnecting. Try again in a moment.";
188
+ export declare function isProductAgentAuthReconnectError(error: unknown): boolean;
174
189
  export {};
@@ -13,6 +13,7 @@ export type UiInvariantSnapshot = {
13
13
  thinkingIdleMs?: number;
14
14
  inProgress?: boolean;
15
15
  hasComposerText?: boolean;
16
+ hasComposerAttachment?: boolean;
16
17
  enabledStopControlCount?: number;
17
18
  stopPendingMs?: number;
18
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluno/product-agent-web",
3
- "version": "0.1.229",
3
+ "version": "0.1.230",
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",