@octavus/client-sdk 2.1.0 → 2.3.0

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
@@ -344,6 +344,18 @@ interface OctavusChatOptions {
344
344
  onStop?: () => void;
345
345
  /** Callback when a resource is updated */
346
346
  onResourceUpdate?: (name: string, value: unknown) => void;
347
+ /**
348
+ * Callback when execution starts with the session/execution ID.
349
+ * Useful for tracking the current execution for activity logs.
350
+ *
351
+ * @example
352
+ * ```typescript
353
+ * onStart: (sessionId) => {
354
+ * setCurrentSessionId(sessionId);
355
+ * }
356
+ * ```
357
+ */
358
+ onStart?: (sessionId: string) => void;
347
359
  }
348
360
  type Listener = () => void;
349
361
  /**
@@ -397,6 +409,7 @@ declare class OctavusChat {
397
409
  private _serverToolResults;
398
410
  private _pendingExecutionId;
399
411
  private _readyToContinue;
412
+ private _finishEventReceived;
400
413
  private listeners;
401
414
  constructor(options: OctavusChatOptions);
402
415
  get messages(): UIMessage[];