@pluno/product-agent-web 0.1.68 → 0.1.69

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
@@ -211,7 +211,9 @@ export declare class PlunoProductAgent {
211
211
  private prepareEmbedAttachmentUpload;
212
212
  private fetchEmbedAttachmentUpload;
213
213
  stop(): void;
214
- startNewSession(): void;
214
+ startNewSession(options?: {
215
+ notifyTransport?: boolean;
216
+ }): void;
215
217
  listSessions(options?: {
216
218
  cursor?: string | null;
217
219
  limit?: number;
@@ -555,8 +555,9 @@ class Pt {
555
555
  stop() {
556
556
  this.state.sessionId && (this.send({ type: "run.stop", sessionId: this.state.sessionId }), this.setState({ isThinking: !1 }), this.clearThinkingWatchdog());
557
557
  }
558
- startNewSession() {
559
- this.state.sessionId && this.state.isThinking && this.sendNow({ type: "run.stop", sessionId: this.state.sessionId }), this.cleanupSessionUserFilesApi(), this.queuedClientEvents = this.queuedClientEvents.filter((t) => t.type !== "chat.user_message"), this.clearThinkingWatchdog(), this.send({
558
+ startNewSession(t = {}) {
559
+ const s = t.notifyTransport !== !1;
560
+ s && this.state.sessionId && this.state.isThinking && this.sendNow({ type: "run.stop", sessionId: this.state.sessionId }), this.cleanupSessionUserFilesApi(), this.queuedClientEvents = this.queuedClientEvents.filter((n) => n.type !== "chat.user_message"), this.clearThinkingWatchdog(), s && this.send({
560
561
  type: "session.reset",
561
562
  sessionId: this.state.sessionId ?? void 0,
562
563
  page: I()