@pluno/product-agent-web 0.1.228 → 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/assistantDeltaReplay.d.ts +10 -0
- package/dist/index.d.ts +4 -2
- package/dist/product-agent-runtime.cjs +1 -1
- package/dist/product-agent-runtime.js +280 -265
- package/dist/product-agent-sdk.js +880 -839
- package/dist/product-agent-widget.js +2778 -2704
- package/dist/runtime.d.ts +2 -2
- package/dist/runtimeState.d.ts +15 -0
- package/dist/uiInvariants.d.ts +1 -0
- package/package.json +1 -1
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";
|
package/dist/runtimeState.d.ts
CHANGED
|
@@ -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 {};
|
package/dist/uiInvariants.d.ts
CHANGED
package/package.json
CHANGED