@pluno/product-agent-web 0.1.40 → 0.1.44

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.
@@ -1,5 +1,21 @@
1
+ export type BoltPalette = {
2
+ top: string;
3
+ middle: string;
4
+ bottom: string;
5
+ edgeStart: string;
6
+ edgeMiddle: string;
7
+ edgeEnd: string;
8
+ glow: string;
9
+ highlight: string;
10
+ inner: string;
11
+ shadow: string;
12
+ };
13
+ export declare const PRODUCT_AGENT_BOLT_OUTLINE = "M547 151 C516 151 493 169 485 199 L382 606 C373 641 396 666 431 666 L523 666 C552 666 568 684 563 713 L491 1028 C486 1054 510 1067 527 1044 L894 487 C915 455 894 432 856 432 L815 432 C784 432 773 411 789 382 L904 205 C922 171 901 145 859 145 Z";
1
14
  export declare function createProductAgentCharacterSvg(primaryColor: string): string;
2
15
  export declare function createProductAgentCharacterDataUri(primaryColor: string): string;
16
+ export declare const SCRIBBLE_INK = "#2c2a1e";
3
17
  export declare function getScribbleVisibleAccentColor(primaryColor: string): string;
4
18
  export declare function createScribbleProductAgentCharacterSvg(primaryColor: string): string;
5
19
  export declare function createScribbleProductAgentCharacterDataUri(primaryColor: string): string;
20
+ export declare function buildCrayonZigzagPath(): string;
21
+ export declare function makeBoltPalette(primaryColor: string): BoltPalette;
package/dist/index.d.ts CHANGED
@@ -43,6 +43,19 @@ export type ProductAgentAttachment = {
43
43
  sizeBytes: number;
44
44
  dataUrl: string;
45
45
  };
46
+ export type ProductAgentSessionHistoryEntry = {
47
+ id: string;
48
+ title: string | null;
49
+ firstUserMessage?: string | null;
50
+ currentPage: unknown;
51
+ createdAt: string;
52
+ updatedAt: string;
53
+ lastActiveAt: string;
54
+ };
55
+ export type ProductAgentSessionHistoryPage = {
56
+ sessions: ProductAgentSessionHistoryEntry[];
57
+ nextCursor: string | null;
58
+ };
46
59
  export type ProductAgentImageAttachment = ProductAgentAttachment;
47
60
  export type ProductAgentAppearance = {
48
61
  accentColor?: string;
@@ -55,6 +68,7 @@ export type ProductAgentState = {
55
68
  user: ProductAgentUser | null;
56
69
  sessionId: string | null;
57
70
  starterPrompts: string[];
71
+ starterPromptsLoading: boolean;
58
72
  appearance: ProductAgentAppearance | null;
59
73
  messages: ProductAgentMessage[];
60
74
  assistantDraft: string;
@@ -101,6 +115,7 @@ export declare class PlunoProductAgent {
101
115
  private networkBatchTimer;
102
116
  private queuedNetworkEvents;
103
117
  private queuedClientEvents;
118
+ private pendingSessionHistoryRequests;
104
119
  private readonly transportId;
105
120
  private retryAttemptsByClientMessageId;
106
121
  private retryTimersByClientMessageId;
@@ -114,6 +129,8 @@ export declare class PlunoProductAgent {
114
129
  private thinkingWatchdogResyncAttemptsByClientMessageId;
115
130
  private thinkingWatchdogRetryAttemptsByClientMessageId;
116
131
  private runtimeHelperJavascript;
132
+ private transientStarterPromptsRequestInFlight;
133
+ private transientStarterPromptsRequestAttempted;
117
134
  private state;
118
135
  private constructor();
119
136
  static init(options: ProductAgentInitOptions): Promise<PlunoProductAgent>;
@@ -127,12 +144,19 @@ export declare class PlunoProductAgent {
127
144
  }): void;
128
145
  stop(): void;
129
146
  startNewSession(): void;
147
+ listSessions(options?: {
148
+ cursor?: string | null;
149
+ limit?: number;
150
+ }): Promise<ProductAgentSessionHistoryPage>;
151
+ loadSession(sessionId: string): void;
130
152
  private send;
131
153
  private sendNow;
154
+ private requestTransientStarterPrompts;
132
155
  private flushQueuedClientEvents;
133
156
  private handleServerEvent;
134
157
  private retryAfterRetryableError;
135
158
  private clearRetryTimers;
159
+ private rejectPendingSessionHistoryRequests;
136
160
  private markThinkingProgress;
137
161
  private scheduleThinkingWatchdog;
138
162
  private clearThinkingWatchdog;